Commit graph

31 commits

Author SHA1 Message Date
nashmuhandes
58fecd4b92 Move depth fade definition to GLDEFS 2024-09-09 18:57:07 +08:00
dpjudas
6b3803cb3b Fix descriptor pool size 2024-09-05 10:14:23 +02:00
Magnus Norddahl
4655b02f06 Fix using wrong surface for the extra BLAS structures for trace hits
Add gl_raytrace for ray tracing the level mesh
2024-09-05 00:15:59 +02:00
dpjudas
66288b539c Fix crash on GPUs that doesn't support ray query 2024-08-31 03:42:03 +02:00
Magnus Norddahl
3cb2b31d95 Create up to 32 bottom level acceleration structures to avoid rebuilding the entire map on geometry changes 2024-08-30 03:12:24 +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
61375fae12 Fix uniforms upload bug 2024-08-25 14:19:11 +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
dpjudas
b6cbaaedbc Update the bottom level accel structure if vertices or indexes change 2024-08-11 23:03:32 +02:00
Magnus Norddahl
766b558119 Ranges in buffers are so fun! 2024-08-11 20:39:45 +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
Magnus Norddahl
2eab98b4fb Fix level mesh upload crash if too large textures gets uploaded 2024-06-24 16:57:10 +02:00
nashmuhandes
1a89307ee7 Rename SourceRadius to SoftShadowRadius 2024-06-15 18:08:37 +08:00
Magnus Norddahl
ab537a4879 Hook up SourceRadius 2024-03-05 16:37:59 +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
94eb96a235 Fix trace bug for when rayquery is not available 2024-02-10 00:55:29 +01:00
Magnus Norddahl
c1d0963da4 Rewrite the GLSL ray trace code so it does not use global variables!!
Fix portals not working
2024-02-09 12:08:16 +01:00
Magnus Norddahl
c817cba606 Clean up the upload code 2024-02-01 13:08:38 +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
Kevin Caccamo
d7dcf60c7b Use EXTERN_CVAR instead of extern
Because vk_rayquery is a CVAR and needs this treatment
2024-01-21 14:15:17 +01:00
Kevin Caccamo
fe456eaded Attempt to fix compilation errors on other platforms
The compilation failed because there was more than one vk_rayquery variable (A CVAR and a hard-coded global true value), so I removed the latter.
2024-01-21 14:15:17 +01:00
Magnus Norddahl
d181774e02 Fix shadows not working for non-rt render path 2024-01-17 13:27:30 +01:00
Magnus Norddahl
c1f38b18c4 Put all the pipeline barriers in the same function and use a new instance buffer each time the TLAS is updated 2023-12-26 04:31:02 +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
75e33c4923 Move portal creation out of the submesh 2023-12-26 04:30:58 +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_levelmesh.cpp (Browse further)