Commit graph

200 commits

Author SHA1 Message Date
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
76fb5901d7 Only force baking of tiles where the geometry changed 2025-05-13 01:52:02 +02:00
Magnus Norddahl
b27d094def Improve GetVisibleSurfaces performance 2025-05-12 22:43:30 +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
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
Magnus Norddahl
b61941b4a6 Add IsActive check in DoomLevelMesh::CreateLightList 2025-05-10 16:03:35 +02:00
Magnus Norddahl
6e5df8ef4c Fix the shadow data VBO not updating its lightmap UVs 2025-05-10 03:07:17 +02:00
Magnus Norddahl
737b7ece96 Dynamically allocate and free lightmap tiles 2025-05-10 03:07:17 +02:00
Magnus Norddahl
f360ae82cf Part of the patent-pending light list design in gzdoom keeps invalid lights in the light lists and you must check for that everywhere... 2025-04-26 17:03:46 +02:00
RaveYard
0c53fbe174 Minor refactor of lightmap loading code 2025-03-15 20:32:04 +01:00
Magnus Norddahl
7a59234bb4 Add lm_dynlights CVAR for running dynamic lights entirely in lightmaps 2025-02-01 21:21:33 +01:00
Ricardo Luís Vaz Silva
c923ed233e remove SectorChangedOther/OnSectorChangedOther 2025-01-28 08:50:50 +08:00
Ricardo Luís Vaz Silva
65b75814ab update walls on texZ change 2025-01-28 08:50:50 +08:00
Ricardo Luís Vaz Silva
a7b20183f1 gpu actor tracing (NOT WORKING) 2025-01-20 16:45:08 +01:00
Ricardo Luís Vaz Silva
693413e606 replace vec4 list with proper struct for lights 2025-01-20 16:45:08 +01:00
Magnus Norddahl
d8d1742d0a Add lm_bounce and lm_ao to ZDRayInfo
Make vktool ignore the existing lightmap lump
Ignore the lightmapper cvars in vktool
2025-01-19 15:34:39 +01:00
Magnus Norddahl
d435c9c144 Fix crash when switching from a level with lightmaps to one without 2025-01-19 12:36:40 +01:00
Magnus Norddahl
6ba2cff8cb Replace the savelightmap and deletelightmap ccmds with vktool 2025-01-12 20:03:19 +01:00
Ricardo Luís Vaz Silva
aa51ac7b6d only lightmap updated tiles once they're visible 2024-12-22 00:28:03 +01:00
nashmuhandes
c2808809b7 Add customizable sunlight intensity (both to ZDRayInfo and ZScript) 2024-12-21 17:48:17 +01:00
nashmuhandes
f455990b7b Bump the lightmap lump version to invalidate really old (ZDRay) lightmaps. 2024-12-21 18:43:07 +08:00
Magnus Norddahl
acdf49ee7a Don't use glcycle_t 2024-12-17 00:39:38 +01:00
Magnus Norddahl
e30831a409 Clean up the ranges code a bit 2024-12-16 22:17:18 +01:00
Magnus Norddahl
e002697598 Add cpublasinfo ccmd 2024-12-15 16:30:19 +01:00
Boondorl
4d5bba8d02 Clean up decal behavior
Only update the mesh if a decal was truly created/destroyed
2024-12-14 05:40:45 +08:00
Magnus Norddahl
36d74cf8f9 Try try again 2024-12-12 23:21:45 +01:00
Magnus Norddahl
2040be87a5 One more save fix 2024-12-12 23:10:13 +01:00
Magnus Norddahl
bd3b41cffb Don't save dynamic lightmap textures 2024-12-12 21:19:17 +01:00
Magnus Norddahl
22aab27058 Add some lame free list info 2024-12-12 18:58:47 +01:00
Magnus Norddahl
dafc612b68 Add measurement of how long DoomLevelMesh::BeginFrame took 2024-12-10 23:05:57 +01:00
Boondorl
57202305d6 Added toggle for lm_dynamic 2024-11-02 09:20:23 +01:00
nashmuhandes
a37c47cf92 Change SetSunDirection to take in angle and pitch 2024-10-24 12:59:12 +08:00
nashmuhandes
521d44d623 Fix compile error 2024-10-24 11:15:59 +08:00
Nash Muhandes
7092550d3e
Merge branch 'master' into pr_lightmap_modding_vkdoom 2024-10-24 11:06:26 +08:00
dpjudas
dfbef085e6 Group lightmap variables and put polyobj walls in a dynamic lightmap atlas 2024-10-22 02:29:12 +02:00
dpjudas
4a425c4493 Add support for updating the CPU-side accelstruct used for actor tracing 2024-10-20 23:54:15 +02:00
Magnus Norddahl
fee5e3a58b Fix lightmap lights not updating 2024-10-16 21:38:30 +02:00
Magnus Norddahl
bb1174172a Don't render the lightmap lights as dynlights in gl_levelmesh 2024-10-16 15:01:37 +02:00
Ricardo Luís Vaz Silva
44e69451cf Hook up 3d floor updates to the level mesh 2024-10-15 18:33:30 +02:00
dpjudas
c64b5bb2cb Fix ccmd message 2024-10-01 01:01:46 +02:00
Magnus Norddahl
d69d190dc3 Add savelightmap and deletelightmap ccmds 2024-09-30 18:48:48 +02:00
Magnus Norddahl
7e83d726ca Improve light level updates 2024-09-29 14:21:57 +02:00
dpjudas
9fdd01736e Don't store HWDecal directly as they may move and animate 2024-09-29 01:13:23 +02:00
Magnus Norddahl
1e23dcee7c Some initial decal rendering 2024-09-28 22:17:17 +02:00