Commit graph

117 commits

Author SHA1 Message Date
Magnus Norddahl
6a7c17dfd6 Fix 3d floor sides not getting lit 2024-03-01 19:30:36 +01:00
Magnus Norddahl
2ba2553c60 Fix sample distance 2024-03-01 11:55:15 +01:00
Magnus Norddahl
68f9fee55b Make the light list part of the level mesh 2024-02-26 15:57:32 +01:00
Magnus Norddahl
75b70abcb3 Fix sunlight coming from sector portals 2024-02-10 02:19:59 +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
2411b103b5 Keep bindings in the mesh 2024-02-08 21:27:16 +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
ee7771f71f ZDRay lump loading adjustments 2024-01-16 12:42:58 +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
98c209edbd Rename VkLightmap and VkRaytrace 2023-12-26 04:30:58 +01:00
Magnus Norddahl
6a77924207 Group mesh buffers 2023-12-26 04:30:58 +01:00
dpjudas
9ca058ccc9 Create wall surfaces directly from the HWWall output 2023-12-26 04:30:56 +01:00
Magnus Norddahl
9f963e2c06 Rename lightmap fields to surface as it is being used for more than lightmaps now 2023-12-26 04:30:56 +01:00
Magnus Norddahl
4f4d859fd9 Move some code 2023-12-26 04:30:56 +01:00
dpjudas
f83ae7487f Split into more files 2023-12-26 04:30:56 +01:00
Magnus Norddahl
f1b15c5000 Fix the second vertex buffer binding bug 2023-12-26 04:30:55 +01:00
Magnus Norddahl
d3da7a8443 Fix UV order 2023-12-26 04:30:55 +01:00
Magnus Norddahl
f550f5b05a Hook up bindless textures for gl_levelmesh 2023-12-26 04:30:55 +01:00
Magnus Norddahl
9edfbcd10e Create different buffer for uniform indexes that works for the vertex shader 2023-12-26 04:30:55 +01:00
Magnus Norddahl
f8fd08a623 Clean up VkDescriptorSetManager a bit and bind the surface uniforms when drawing with gl_levelmesh 2023-12-26 04:30:54 +01:00
Magnus Norddahl
ba7dfb8a8f Add uniforms to level mesh and upload them to the GPU 2023-12-26 04:30:54 +01:00
Magnus Norddahl
240d68d7ae Merge SurfaceVertex with FFlatVertex and draw the lightmaps 2023-12-26 04:30:54 +01:00
Magnus Norddahl
58381ec762 Use a TArrayView for the lightmap arrays 2023-12-07 12:48:48 +01:00
Magnus Norddahl
9a334570f0 Add lm_dynamic UDMF boolean on sectors for marking if a sector should update its lightmap dynamically 2023-10-17 19:10:39 +02:00
Magnus Norddahl
bcea260f33 Fix misc bugs related to the dynamic lightmap and polybsp lines in the lightmapper 2023-10-02 02:40:40 +02:00
Magnus Norddahl
cc8ba3b6f3 Simplify code 2023-10-01 22:11:05 +02:00
Magnus Norddahl
241a2aa621 Split CreateSideSurfaces into multiple functions 2023-10-01 22:09:18 +02:00
Magnus Norddahl
be2ed695c8 More SetSideTextureUVs adjustments 2023-10-01 15:17:05 +02:00
Magnus Norddahl
70e0e85764 Remove CreateSurfaceTextureUVs 2023-10-01 14:56:01 +02:00
Magnus Norddahl
c6d03f8660 Fix U texture calculation 2023-10-01 13:37:44 +02:00
Magnus Norddahl
864925df25 More clean up 2023-10-01 12:52:23 +02:00
Magnus Norddahl
4306d2d3d8 Fix using wrong light list for 3d floors 2023-10-01 00:27:22 +02:00
Magnus Norddahl
0c0ca70b28 Remove dead code 2023-09-30 23:17:22 +02:00
Magnus Norddahl
925e0b114d Remove unused MeshUVIndex array 2023-09-30 22:58:37 +02:00
Magnus Norddahl
61635772fe Remove XFloorToSurface and XFloorToSurfaceSides as they aren't needed 2023-09-30 22:56:10 +02:00
Magnus Norddahl
e2e0a78a2b More code cleanup 2023-09-30 22:24:24 +02:00
Magnus Norddahl
7bc52386f9 Make doom specific surface fields private to doom 2023-09-30 21:33:07 +02:00
Magnus Norddahl
2b7394cbb1 Update the dynamic submesh with poly lines 2023-09-26 00:06:10 +02:00
Magnus Norddahl
65929d021f Add support for multiple meshes (DoomLevelSubmesh) 2023-09-25 23:28:49 +02:00
Magnus Norddahl
fae22f1bb7 Remove smoothing groups from vk_lightmap and fix some warnings 2023-09-25 20:35:34 +02:00
Magnus Norddahl
1dd2605200 Retrieve the light list on the fly rather than try to sync it 2023-09-22 16:35:50 +02:00
RaveYard
9f5e8b5e4d Minor cleanup and lightmapper fixes 2023-09-22 15:42:05 +02:00
RaveYard
eb134d3fbf Add color blending for lights 2023-09-21 00:15:23 +02:00
RaveYard
5cf202f24e Fix surface midtexture yscale 2023-09-21 00:15:23 +02:00
RaveYard
3827d51784 WIP wall UVs for levelmesh 2023-09-21 00:15:23 +02:00
RaveYard
7989b389c7 Fix flat UVs 2023-09-21 00:15:23 +02:00
RaveYard
c525ec1b68 Add access to vertex indices in frag_raytrace.glsl 2023-09-21 00:15:23 +02:00