Commit graph

45 commits

Author SHA1 Message Date
RaveYard
0f6ea51769 Minor refactor and fix 3d floors not being detected for lightmap updates 2023-09-10 23:42:00 +02:00
RaveYard
19e9ac1db3 Add cvar lm_scale for multiplying resolution of the lightmap 2023-09-10 23:42:00 +02:00
RaveYard
b163901862 WIP partial lightmapping 2023-09-10 23:42:00 +02:00
RaveYard
6078e339fc Fix normals in wall surfaces that are squished into triangles 2023-09-07 10:27:42 +02:00
RaveYard
c05ef67679 Add ZDRay light intensity support 2023-09-06 19:04:26 +02:00
RaveYard
f360457899 Add ZDRay light intensity support 2023-09-06 15:15:58 +02:00
Magnus Norddahl
6ea7a2ee08 Muted some warnings 2023-09-05 17:59:09 +02:00
Magnus Norddahl
10a5e4d466 Add missing file and only include static lights in the lightmaps 2023-09-05 17:47:55 +02:00
RaveYard
2528048850 Line portal support 2023-09-05 17:43:38 +02:00
RaveYard
036debfac6 Sector portals sunlight only 2023-09-05 17:43:38 +02:00
RaveYard
137b144fe1 Round sampledist to power of 2 2023-09-04 12:59:44 +02:00
RaveYard
6a579396b5 Read ZDRay info thing 2023-09-04 12:59:44 +02:00
RaveYard
8329fe9e3c Read lm_sampledist properties from map geometry 2023-09-04 12:59:44 +02:00
RaveYard
04eac16222 Fix the lightmapper ceiling/floor plane calculations 2023-09-04 10:48:39 +02:00
RaveYard
fa3045b631 Enhance dumplevelmesh 2023-09-04 10:07:50 +02:00
Magnus Norddahl
ea02067b0a Delay finding the light lists until after map has loaded 2023-09-03 06:28:41 +02:00
Magnus Norddahl
cdb9f3798c Add lights to surfaces 2023-09-03 06:09:54 +02:00
Magnus Norddahl
00c8a36562 Remove some unused code 2023-09-03 05:24:23 +02:00
RaveYard
c2ded2796f Port BuildSmoothingGroups from ZDray 2023-09-02 21:23:06 +02:00
Magnus Norddahl
13819967f1 Merge LightmapSurface into DoomLevelMeshSurface 2023-09-02 13:50:28 +02:00
Magnus Norddahl
e297b78a25 Create DoomLevelMeshSurface 2023-09-02 13:24:04 +02:00
Magnus Norddahl
375e71dc0d Namespace fixes 2023-09-02 13:09:57 +02:00
Magnus Norddahl
52a1c62b2c Move SurfaceInfo and PortalInfo to vk_raytrace
Add VSMatrix * FVector4 operator
2023-09-02 12:54:07 +02:00
Magnus Norddahl
1e47db3cf3 Rename MeshSurfaces to MeshSurfaceIndexes for clarity 2023-09-02 12:34:00 +02:00
RaveYard
6f00cacdcc WIP Attempt to fix the temporary ZDRay tracecoder lightmap write 2023-09-02 11:07:14 +02:00
Magnus Norddahl
4d12de45e4 Fix null pointer crash 2023-09-01 00:25:09 +02:00
Magnus Norddahl
558867a49f Move surface linking into DoomLevelMesh 2023-09-01 00:13:22 +02:00
Magnus Norddahl
cff50b8087 Initialize lightmap texture in SetLevelMesh
Create VkLightmap class on VulkanRenderDevice
2023-09-01 00:03:18 +02:00
RaveYard
23deb11399 Merge Surface into hwrenderer::Surface 2023-08-31 22:57:58 +02:00
RaveYard
14881a6fb2 Use FVector4 for plane in struct Surface 2023-08-31 22:57:58 +02:00
RaveYard
a40164865c LIghtmapUVs to FVector2 2023-08-31 22:57:57 +02:00
RaveYard
6fc7eaf2fa First step towards refactoring 2023-08-31 22:57:57 +02:00
RaveYard
ef031c2073 WIP fake raytracer output 2023-08-31 22:57:57 +02:00
RaveYard
4e57deaf33 Buffer data now in Levelmesh 2023-08-31 22:57:57 +02:00
RaveYard
651903fe71 WIP VkLightmap integration 2023-08-31 22:57:56 +02:00
RaveYard
96576ea1ae DoomLevelMesh LightmapUVs are now finally correct 2023-08-31 22:57:56 +02:00
RaveYard
68002d3edc Fix bad UV indices in FinishSurface and export UVs in dumplevelmesh 2023-08-31 22:57:56 +02:00
RaveYard
5263a68dc9 Atlas UV mapping 2023-08-31 22:57:56 +02:00
RaveYard
1a25e492d9 Minor cleanup 2023-08-31 22:57:56 +02:00
RaveYard
0fc5f254fc WIP BuildSurfaceParams from ZDRay 2023-08-31 22:57:56 +02:00
RaveYard
0edaa7ca9d Fix uninitialized bSky 2023-08-30 18:08:00 +02:00
RaveYard
4f5d2f3ec6 Add DumpLevelMesh ccmd 2023-08-30 18:08:00 +02:00
RaveYard
f228dd326b Backport support for Line_Horizon from ZDRay into doom_levelmesh 2023-08-30 18:06:35 +02:00
Magnus Norddahl
943cbd59e9 Add AABB tree collision structure to the doom level mesh for threadsafe trace calls for the sprite light 2022-09-25 21:58:54 +02:00
Magnus Norddahl
97073410c4 Upload acceleration structures for the level mesh 2022-06-22 07:55:19 +02:00