Commit graph

147 commits

Author SHA1 Message Date
Magnus Norddahl
ac212e0147 Use HWFlat for ceilings and floors 2023-12-26 04:30:57 +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
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
e75e5a387b Merge remote-tracking branch 'gzdoom/master' into merge-gzdoom 2023-10-19 21:05:17 +02: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
dpjudas
411b281e7c Remove multithreading RenderState as that seemed to be a poor approach 2023-10-09 03:20:19 +02:00
Christoph Oelckers
7a5a2858a2 yet even more GetChars calls added. 2023-10-07 23:29:24 +02:00
Magnus Norddahl
697e7982a7 Turn off lightmaps for levels that have none 2023-10-03 18:24:11 +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
7bc52386f9 Make doom specific surface fields private to doom 2023-09-30 21:33:07 +02:00
Magnus Norddahl
65929d021f Add support for multiple meshes (DoomLevelSubmesh) 2023-09-25 23:28:49 +02:00
Magnus Norddahl
9e136a7e79 Fix maploader warning 2023-09-19 00:46:20 +02:00
RaveYard
dc936ed32b Use LIGHTMAP lump surface dimensions before packing the lightmap atlas 2023-09-18 16:36:09 +02:00
RaveYard
2f1acda776 Optimize lightmap lump loading 2023-09-18 16:36:09 +02:00
Christoph Oelckers
ea51c92fda - validate partner seg index in LoadGLZSegs before using it
KDiZD Z1M10 has something bogus in there, this case will now trigger a node rebuild.
2023-09-16 09:48:43 +02:00
RaveYard
d609396e3b Add ton of debug code hidden under 'developer' cvar for lightmap lump loading and other error detection measures 2023-09-15 10:43:56 +02:00
RaveYard
315475156c Add error detections when the surfaces sizes do not match 2023-09-15 10:43:56 +02:00
RaveYard
e265be959a Enforce ZDRay limit on default sampledistance when loading LIGHTMAP to avoid surface size mismatches. 2023-09-15 10:43:56 +02:00
RaveYard
5a55033ef7 Use UVs from the lightmap 2023-09-15 10:43:56 +02:00
RaveYard
05964f3c8e Initial implementation of V2 lightmap lump loading 2023-09-15 10:43:56 +02:00
RaveYard
476c98fdfa Fix edge case where the lightmap lump surface touches the edge of the atlas page 2023-09-13 21:58:11 +02:00
RaveYard
22368c0f40 Clean unused code 2023-09-13 21:58:11 +02:00
RaveYard
c05376c273 Fix variety of bugs and assume that any surface not contained in LIGHTMAP lump does not need updating 2023-09-13 21:58:11 +02:00
RaveYard
c6b92e1c1b Initial implementation for lightmap lump loading 2023-09-13 21:58:11 +02:00
RaveYard
0faacaaf0f Fix InitLevelMesh called before line portals are set 2023-09-05 17:54:11 +02:00
RaveYard
036debfac6 Sector portals sunlight only 2023-09-05 17:43:38 +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
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
6ef79a1d3a TMP need uvs back 2023-08-31 22:57:58 +02:00
RaveYard
0e927c2a26 Re-enable cpu trace test 2023-08-31 22:57:57 +02:00
RaveYard
18842eb30c GenerateLightmap in DFrameBuffer 2023-08-31 22:57:57 +02:00
RaveYard
a40164865c LIghtmapUVs to FVector2 2023-08-31 22:57:57 +02:00
RaveYard
197b746fef WIP Cleanup of maploader 2023-08-31 22:57:57 +02:00
RaveYard
6fc7eaf2fa First step towards refactoring 2023-08-31 22:57:57 +02:00
RaveYard
651903fe71 WIP VkLightmap integration 2023-08-31 22:57:56 +02:00
RaveYard
e4d99058ad CPU raytrace basic test 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
Christoph Oelckers
ebb71cebf1 - put the entire filesystem code into a namespace and created some subdirectories. 2023-08-22 22:54:54 +02:00
Christoph Oelckers
25b7b18c3d - got rid of the two copying variants of fileSystem.GetFileShortName. 2023-08-22 22:18:53 +02:00
Christoph Oelckers
1dc47f91c2 - file system error management refactoring. 2023-08-22 21:49:54 +02:00
Magnus Norddahl
7bdf3f7364 Create a RenderState object for each thread 2023-05-17 22:39:22 +02:00
Magnus Norddahl
154cb2e967 Prepare FFlatVertexBuffer for removal 2023-05-07 03:19:43 +02:00