Commit graph

21381 commits

Author SHA1 Message Date
Magnus Norddahl
04941cab43 Add missing file and only include static lights in the lightmaps 2023-09-25 21:20:05 +02:00
RaveYard
8fa46c722d Line portal support 2023-09-25 21:20:05 +02:00
RaveYard
efeab91a75 Sector portals sunlight only 2023-09-25 21:20:05 +02:00
Magnus Norddahl
cd6dd34f72 Add the 3x3 blur 2023-09-25 21:20:05 +02:00
Magnus Norddahl
efea99b87c Only recreate lightmap texture if its size changes 2023-09-25 21:20:05 +02:00
Magnus Norddahl
bfc5684e0c Reuse lightmap baking textures between calls to Raytrace 2023-09-25 21:20:04 +02:00
RaveYard
fd4496f360 Round sampledist to power of 2 2023-09-25 21:20:04 +02:00
RaveYard
18a873923f Read ZDRay info thing 2023-09-25 21:20:04 +02:00
RaveYard
efbbdc2925 Read lm_sampledist properties from map geometry 2023-09-25 21:20:04 +02:00
RaveYard
9bd20ce5a8 Fix the lightmapper ceiling/floor plane calculations 2023-09-25 21:20:04 +02:00
RaveYard
194d5fcf87 Fix use of uninitialized variables boundsMin and boundsMax 2023-09-25 21:20:04 +02:00
RaveYard
3bbfb673cb Enhance dumplevelmesh 2023-09-25 21:20:04 +02:00
Magnus Norddahl
8515661b1a Delay finding the light lists until after map has loaded 2023-09-25 21:20:04 +02:00
Magnus Norddahl
ab539d85d2 Add lights to surfaces 2023-09-25 21:20:03 +02:00
Magnus Norddahl
a11152320f Remove some unused code 2023-09-25 21:20:03 +02:00
Magnus Norddahl
4c9cd2bd34 Release the resources so the lightmapper can run again 2023-09-25 21:20:03 +02:00
Magnus Norddahl
ab370c7a91 Perform the copy from the atlas resolve image to the lightmap texture on the GPU 2023-09-25 21:20:03 +02:00
RaveYard
3b0f19a57f Port BuildSmoothingGroups from ZDray 2023-09-25 21:20:03 +02:00
Magnus Norddahl
3c0b8ccc14 Use the command buffers from VkCommandBufferManager 2023-09-25 21:20:03 +02:00
Magnus Norddahl
634e6b2603 Finish upload before using buffers 2023-09-25 21:20:03 +02:00
Magnus Norddahl
ac962c80e3 Merge LightmapSurface into DoomLevelMeshSurface 2023-09-25 21:20:03 +02:00
Magnus Norddahl
dd07316072 Create DoomLevelMeshSurface 2023-09-25 21:20:02 +02:00
Magnus Norddahl
fd7e0d986f Namespace fixes 2023-09-25 21:20:02 +02:00
Magnus Norddahl
ab609d7708 Move SurfaceInfo and PortalInfo to vk_raytrace
Add VSMatrix * FVector4 operator
2023-09-25 21:20:02 +02:00
Magnus Norddahl
87c21f99fe Rename MeshSurfaces to MeshSurfaceIndexes for clarity 2023-09-25 21:20:02 +02:00
Magnus Norddahl
87f52367ad Fix unmap asserts 2023-09-25 21:20:02 +02:00
Magnus Norddahl
684bfb3e9e Fix misc typos 2023-09-25 21:20:02 +02:00
RaveYard
b5678d5f86 Use lightmapper output 2023-09-25 21:20:02 +02:00
RaveYard
8d2b03b7ef Fix copying of pixels from surface.texPixels to LMTextureData 2023-09-25 21:20:02 +02:00
RaveYard
72ccf127ba Fix AllocUvs 2023-09-25 21:20:01 +02:00
RaveYard
b73f42f58b WIP Attempt to fix the temporary ZDRay tracecoder lightmap write 2023-09-25 21:20:01 +02:00
Magnus Norddahl
c842f32941 Fix null pointer crash 2023-09-25 21:20:01 +02:00
Magnus Norddahl
45206f2184 Move surface linking into DoomLevelMesh 2023-09-25 21:20:01 +02:00
Magnus Norddahl
db5c659fab Initialize lightmap texture in SetLevelMesh
Create VkLightmap class on VulkanRenderDevice
2023-09-25 21:20:01 +02:00
RaveYard
6de6ae28e9 Merge Surface into hwrenderer::Surface 2023-09-25 21:20:01 +02:00
RaveYard
fc2704b902 Use FVector4 for plane in struct Surface 2023-09-25 21:20:01 +02:00
RaveYard
9635a9f4fb TMP need uvs back 2023-09-25 21:20:01 +02:00
RaveYard
8111b05888 Micro clean-up 2023-09-25 21:20:00 +02:00
RaveYard
15e5f7e77a Re-enable cpu trace test 2023-09-25 21:20:00 +02:00
RaveYard
96e45daa08 Shuffle around member variables in struct Surface 2023-09-25 21:20:00 +02:00
RaveYard
9137a5c2e7 GenerateLightmap in DFrameBuffer 2023-09-25 21:20:00 +02:00
RaveYard
27063276e5 LIghtmapUVs to FVector2 2023-09-25 21:20:00 +02:00
RaveYard
cb730eabe0 WIP Cleanup of maploader 2023-09-25 21:20:00 +02:00
RaveYard
3495a5ca13 First step towards refactoring 2023-09-25 21:20:00 +02:00
RaveYard
c63fc707a4 WIP fake raytracer output 2023-09-25 21:20:00 +02:00
RaveYard
88e6d459ef Buffer data now in Levelmesh 2023-09-25 21:20:00 +02:00
RaveYard
52220a5004 WIP VkLightmap integration 2023-09-25 21:19:59 +02:00
RaveYard
22dbbec4cc Fix after rebase 2023-09-25 21:19:59 +02:00
RaveYard
3af8f477e7 CPU raytrace basic test 2023-09-25 21:19:59 +02:00
RaveYard
73030b9315 DoomLevelMesh LightmapUVs are now finally correct 2023-09-25 21:19:59 +02:00