Commit graph

34 commits

Author SHA1 Message Date
Magnus Norddahl
be4b0cb67b Stop memory allocations by keeping the RectPacker around 2025-05-12 14:26:24 +02:00
Magnus Norddahl
2c069349a3 Portal and high update count fixes 2025-05-12 00:39:41 +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
dpjudas
4f1316b3fd Add thread safety to VkShaderCache 2025-04-19 09:30:17 +02:00
dpjudas
22b7f02305 Remove vulkan shader modules 2025-04-19 08:24:43 +02:00
Magnus Norddahl
3823196765 Revert "Remove resource system voodoo and make some lines slightly more readable"
This reverts commit 9bc869e1a6.

Revert "Fix race condition"

This reverts commit 883e3ce907.

Revert "Run the GLSL compiler on the worker thread"

This reverts commit da0ff9ab04.
2025-04-13 17:15:13 +02:00
Magnus Norddahl
da0ff9ab04 Run the GLSL compiler on the worker thread 2025-04-11 23:17:43 +02:00
Magnus Norddahl
f34cce5614 Replace RectPacker with a version that can do dynamic allocations 2025-03-16 18:42:49 +01:00
Magnus Norddahl
640a2b2c41 Cache all GLSL shader compilation 2025-02-26 01:47:07 +01:00
Magnus Norddahl
41a345d399 Update shader builder code and add initial work on a shader caching class 2025-02-25 00:15:22 +01:00
Magnus Norddahl
7a59234bb4 Add lm_dynlights CVAR for running dynamic lights entirely in lightmaps 2025-02-01 21:21:33 +01:00
Magnus Norddahl
0d976d35c5 Fix crash when building the accel struct for scenes with no level mesh 2025-01-27 21:21:14 +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
nashmuhandes
c2808809b7 Add customizable sunlight intensity (both to ZDRayInfo and ZScript) 2024-12-21 17:48:17 +01:00
nashmuhandes
22eb817db1 Don't save the lm_ao and lm_bounce CVARs as they're meant to be used during the baking step only, on top of being too slow for realtime use. 2024-12-21 18:57:20 +08:00
Boondorl
57202305d6 Added toggle for lm_dynamic 2024-11-02 09:20:23 +01:00
Magnus Norddahl
c0bbe3a43a Hook up some more PBR stuff 2024-10-03 02:37:08 +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
Magnus Norddahl
356ad2fe9f Split doom specific surface data from common/gpu surface data 2024-08-20 02:06:05 +02:00
Magnus Norddahl
ab537a4879 Hook up SourceRadius 2024-03-05 16:37:59 +01:00
Magnus Norddahl
08e06b399b Default ambient occlusion, soft shadows and bounces to be off for the internal light mapper 2024-02-28 01:03:06 +01:00
Magnus Norddahl
c98930a88c Atlas tile adjustments 2024-02-28 00:59:41 +01:00
Magnus Norddahl
60cdb871d2 Add light bounce 2024-02-26 17:00:28 +01:00
Magnus Norddahl
ccc5c259ad Grab the light list from the surfaces in the shader 2024-02-26 16:15:14 +01:00
Magnus Norddahl
68f9fee55b Make the light list part of the level mesh 2024-02-26 15:57:32 +01:00
Magnus Norddahl
1a7407944e Always use indirect draw 2024-02-11 02:12:18 +01:00
Magnus Norddahl
7bc2ed5436 Remove the submesh class as that caused more problems than it solved 2024-01-29 21:56:42 +01:00
Magnus Norddahl
e7e89fce09 Make the vk_rayquery cvar a bit more robust 2024-01-21 14:25:08 +01:00
Magnus Norddahl
d181774e02 Fix shadows not working for non-rt render path 2024-01-17 13:27:30 +01:00
Magnus Norddahl
48b6a7ec46 Split level mesh surface from lightmap tiles as we have multiple surfaces per tile 2023-12-26 04:31:00 +01:00
Magnus Norddahl
412be46e08 Misc surface and lightmapper related cleanup and renaming 2023-12-26 04:30:59 +01:00
Magnus Norddahl
486a08e882 Create VkLevelMeshUploader 2023-12-26 04:30:58 +01:00
Magnus Norddahl
ed7da1ae25 Moving files 2023-12-26 04:30:58 +01:00
Renamed from src/common/rendering/vulkan/accelstructs/vk_lightmapper.cpp (Browse further)