Commit graph

104 commits

Author SHA1 Message Date
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
RaveYard
08b03f2d73 Add SurfaceVertex to store texture UVs 2023-09-21 00:15:23 +02:00
RaveYard
78e4f67e83 Reimplement ZDRay SectorGroup 2023-09-19 16:23:02 +02:00
RaveYard
42e02ec87a Add WIP mid texture support 2023-09-19 09:34:49 +02:00
Magnus Norddahl
e5a4e6c85a Remove LightmapOrigin, LightmapStepX and LightmapStepY as we no longer use them 2023-09-19 00:47:47 +02:00
Magnus Norddahl
44f1090b45 Replace macros with functions 2023-09-18 23:12:56 +02:00
Magnus Norddahl
2e754c8106 Use the vertex and index buffers from the accelstruct 2023-09-18 17:39:06 +02:00
RaveYard
dc936ed32b Use LIGHTMAP lump surface dimensions before packing the lightmap atlas 2023-09-18 16:36:09 +02:00
Magnus Norddahl
d9b066ad37 Move the visible surface list to HWDrawInfo 2023-09-15 20:45:03 +02:00
Magnus Norddahl
651b2ef9e3 Change lightmapper to only use one image 2023-09-15 18:07:37 +02:00
RaveYard
5a55033ef7 Use UVs from the lightmap 2023-09-15 10:43:56 +02:00
RaveYard
6606860550 Refactor CCMDs in doom_levelmesh.cpp 2023-09-14 19:14:35 +02:00
RaveYard
bbcc0c1e88 Add stat lightmap and surfaceinfo ccmd 2023-09-14 19:14:35 +02:00
RaveYard
59c93e6e4f Workaround to make 3d floor side surfaces detectable 2023-09-14 15:15:57 +02:00