Commit graph

23,424 commits

Author SHA1 Message Date
Magnus Norddahl
addddcd8ed Use clipper to find visible walls for hw_levelmesh 2025-05-26 02:03:47 +02:00
Magnus Norddahl
f302f03287 Change level mesh draw code to draw ranges in the mesh rather than the entire mesh 2025-05-25 18:18:29 +02:00
Ricardo Luís Vaz Silva
7461fc202b match gzdoom light limit 2025-05-25 13:54:16 +02:00
Ricardo Luís Vaz Silva
44710c6b1f implement linearity for cpu spritelight 2025-05-21 11:55:01 +08:00
Magnus Norddahl
aa51b22f9c Add a safety check that the file is being compiled correctly 2025-05-20 20:23:02 +02:00
Magnus Norddahl
4a168993dc Special thanks to the compiler tool vendors for making it so trivial and easy to check for the CPU 2025-05-20 20:15:38 +02:00
Magnus Norddahl
1cec474884 Add AVX2 CPU check on startup 2025-05-20 19:57:42 +02:00
Magnus Norddahl
a85cd66747 Use the tonemap PP pass to convert blended render styles back to palette colors 2025-05-20 04:09:31 +02:00
Magnus Norddahl
3a9373da6c Don't draw translucent stuff with indexed textures 2025-05-20 03:41:20 +02:00
Magnus Norddahl
5a5c8d4bde Use the game palette to find the material color 2025-05-20 03:20:46 +02:00
Magnus Norddahl
ac335a5fbf Apply colormaps 2025-05-20 02:59:52 +02:00
Magnus Norddahl
f1fba4fe98 Move software dynlight stuff to lightmodel 2025-05-19 18:06:50 +02:00
dpjudas
3dbb4d7b9c Add lightmap and dynamic lights 2025-05-19 17:23:28 +02:00
dpjudas
23a5b05e45 Fix alpha test 2025-05-19 15:50:51 +02:00
Magnus Norddahl
990ce7c6c9 Render scene with indexed textures for vid_rendermode 2 2025-05-19 05:55:03 +02:00
nashmuhandes
783a3524ed Remove Linearity from A_AttachLight for now as it goes over the kFuncArgCount limit in the JIT (TODO: struct-ify A_AttachLight in future) 2025-05-18 03:43:07 +08:00
nashmuhandes
051751220b Add SoftShadowRadius and Linearity to GLDEFS and A_AttachLight 2025-05-18 02:08:37 +08:00
Ricardo Luís Vaz Silva
56e94cc268 don't use per-pixel lighting for particles/visualthinkers 2025-05-17 22:56:51 +08:00
nashmuhandes
af7c9db9c5 GLDEFS light intensity and A_AttachLight intensity, VKDoom edition 2025-05-17 21:43:47 +08:00
Ricardo Luís Vaz Silva
60baa0fdaa allow toggling nearest dither 2025-05-17 13:36:21 +02:00
Ricardo Luís Vaz Silva
a8810a16a8 shadowmap lights that don't hit one-sided walls if raytraced lights are enabled 2025-05-17 04:35:18 +02:00
nashmuhandes
4d42be0e90 Actually clamp the global sample distance early 2025-05-17 06:51:00 +08:00
nashmuhandes
631a533272 Remove LANGUAGE key for precise midtexture trace (because the actual feature was removed)
Some checks failed
Continuous Integration / macOS | Debug (push) Has been cancelled
Continuous Integration / Linux Clang 11 | Debug (push) Has been cancelled
Continuous Integration / Visual Studio 2022 | Debug (push) Has been cancelled
Continuous Integration / Linux GCC 9 | MinSizeRel (push) Has been cancelled
Continuous Integration / Linux GCC 12 | RelWithDebInfo (push) Has been cancelled
Continuous Integration / Visual Studio 2022 | RelWithDebInfo (push) Has been cancelled
Continuous Integration / macOS | Release (push) Has been cancelled
Continuous Integration / Linux Clang 15 | Release (push) Has been cancelled
Continuous Integration / Update Latest successful build (push) Has been cancelled
VKGood
2025-05-16 07:12:49 +08:00
Ricardo Luís Vaz Silva
e0897ae8b2 remove broken precise midtexture trace, fix sky tracing for actors 2025-05-16 00:47:50 +02:00
Magnus Norddahl
66d4d2d7d0 Add regular sky into the IsSky check 2025-05-16 00:32:49 +02:00
Ricardo Luís Vaz Silva
814eb8da77 flag only skies as skies 2025-05-16 00:29:39 +02:00
Magnus Norddahl
b281c333a1 Simplify the check in the inner loop 2025-05-16 00:11:33 +02:00
Magnus Norddahl
1c4c5d93ca Only move plane up if its a doom sky 2025-05-16 00:07:48 +02:00
Magnus Norddahl
51c6e8add6 Create VBO vertex data before the level mesh since the mesh uses it to build geometry.
Draw all sectors as subsectors if lightmaps are enabled (even if a sector doesn't have a tile initially it could gain one)
2025-05-15 23:53:34 +02:00
Magnus Norddahl
dfeec3c123 Hook up lm_always_update 2025-05-15 10:07:25 +02:00
Ricardo Luís Vaz Silva
9f23178e76 save extraArgs to CVar for easier testing 2025-05-14 23:25:19 +02:00
Magnus Norddahl
5299453486 Fix missing lights when baking a map with vktool 2025-05-14 15:08:42 +02:00
Magnus Norddahl
23e4c46684 Restrict light-only changes to only happen in sectors with the SECF_LM_DYNAMIC flag 2025-05-14 13:26:10 +02:00
dpjudas
33b2c792cd Pick up iwads from folders 2025-05-14 02:15:37 +02:00
Magnus Norddahl
156d7e7af2 Correctly apply sunlight to line portals 2025-05-13 15:18:33 +02:00
Magnus Norddahl
0c0e29b18d Add sunlight to line portals 2025-05-13 14:38:35 +02:00
Magnus Norddahl
76fb5901d7 Only force baking of tiles where the geometry changed 2025-05-13 01:52:02 +02:00
RaveYard
27f0bea2bc Prevent levelmesh updates when ceiling/floor is moving at a zero speed 2025-05-13 01:50:41 +02:00
Magnus Norddahl
398c9304b6 Enable background tile updates again 2025-05-13 00:27:42 +02:00
Ricardo Luís Vaz Silva
f522296970 cache FName conversion for GetGlobalShader 2025-05-12 23:28:04 +02:00
Magnus Norddahl
b27d094def Improve GetVisibleSurfaces performance 2025-05-12 22:43:30 +02:00
Magnus Norddahl
2d772dc0f2 GCC doesn't like this static const int for some weird reason... 2025-05-12 20:00:32 +02:00
Magnus Norddahl
be4b0cb67b Stop memory allocations by keeping the RectPacker around 2025-05-12 14:26:24 +02:00
Magnus Norddahl
5d3f16b0d6 Only update VBO lightmap if its a full update 2025-05-12 13:41:51 +02:00
Magnus Norddahl
3127e2598a Implement the shadow and light list updates 2025-05-12 13:23:56 +02:00
Magnus Norddahl
5f3f51140f Remove debugging code 2025-05-12 12:10:08 +02:00
Magnus Norddahl
2c069349a3 Portal and high update count fixes 2025-05-12 00:39:41 +02:00
Magnus Norddahl
8bf31755df Update sectors and sides where light falls 2025-05-11 20:32:43 +02:00
Magnus Norddahl
6cf3cdb871 Make LevelMeshUpdater responsible for updating the tiles (playsim tells the mesh updater, the level mesh tells the tiles) 2025-05-11 20:11:18 +02:00
Magnus Norddahl
bfb37a89c3 Fix deactivated lightmap light not working 2025-05-11 17:58:07 +02:00