Commit graph

178 commits

Author SHA1 Message Date
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
Magnus Norddahl
76536be804 Use the dynamic lights from the level mesh in the light tiles shader 2024-09-16 18:06:21 +02:00
Magnus Norddahl
d96dd8e7ba Fix using wrong location for the light update 2024-09-11 01:58:34 +02:00
Magnus Norddahl
f0c018fdc6 Update light level in level mesh 2024-09-11 01:39:47 +02:00
Magnus Norddahl
e65b3058cf Fix mesh builder not getting cleared correctly 2024-09-07 04:14:22 +02:00
Magnus Norddahl
d2958d8366 Change how visible surfaces for a tile are collected by the light mapper 2024-09-07 03:11:36 +02:00
dpjudas
d77b9c1e2b Include 3d floors in level mesh limits 2024-09-03 01:09:50 +02:00
dpjudas
4666fa6241 Split masked from opaque in the level mesh draw lists 2024-09-01 22:44:25 +02:00
Magnus Norddahl
75dd9e13c9 Fix line portals drawn as opaque 2024-08-30 21:58:13 +02:00
Magnus Norddahl
d12cd4d74d Sort initial draw lists by pipeline
Fix applying pipeline state too often for scattered draw ranges
Delay updating sides and sectors until frame start to allow the playsim to mark surfaces dirty multiple times
2024-08-28 19:53:12 +02:00
Magnus Norddahl
dedd7245f2 Fix wall portals not getting freed 2024-08-26 02:05:38 +02:00
Magnus Norddahl
e94bd7f641 Fix 'Could not find space in level mesh buffer' error
Interpolate sector height updates
2024-08-26 00:49:30 +02:00
Magnus Norddahl
03e36e9d38 Fix polyobj height 2024-08-25 15:48:17 +02:00
Magnus Norddahl
944c6994b7 Update polyobjs every frame (wtb UpdateLevelMesh notification about this) 2024-08-25 15:10:30 +02:00
Magnus Norddahl
18db0b49a7 Update level mesh on sector changes 2024-08-25 01:06:44 +02:00
Magnus Norddahl
d28a3571b5 More level mesh buffer fun 2024-08-23 00:01:08 +02:00
Magnus Norddahl
356ad2fe9f Split doom specific surface data from common/gpu surface data 2024-08-20 02:06:05 +02:00
Magnus Norddahl
e9946bead2 Fix not lights in the internal lightmapper 2024-08-13 23:35:32 +02:00
dpjudas
b6cbaaedbc Update the bottom level accel structure if vertices or indexes change 2024-08-11 23:03:32 +02:00
Rachael Alexanderson
a4e3aca33c
- add messages for sector light change, thinker creation, and destruction 2024-08-11 15:58:33 -04:00
Magnus Norddahl
766b558119 Ranges in buffers are so fun! 2024-08-11 20:39:45 +02:00
Magnus Norddahl
e0cba77646 Move levelmeshhelper completely out of the Common folder
Connect the level updates to the level mesh
2024-08-11 18:34:03 +02:00
Magnus Norddahl
e80615e167 Move the level mesh dirty ranges to levelmesh so that it can be updated 2024-08-11 17:51:45 +02:00