Commit graph

21411 commits

Author SHA1 Message Date
Magnus Norddahl
6d1f5e02f5 Remove LightmapOrigin, LightmapStepX and LightmapStepY as we no longer use them 2023-09-25 21:20:53 +02:00
Magnus Norddahl
4b12a67ce7 Fix maploader warning 2023-09-25 21:20:53 +02:00
Magnus Norddahl
8654c3396f Don't change the viewport for every tile we trace 2023-09-25 21:20:53 +02:00
Magnus Norddahl
b9e2a4cb1a Replace macros with functions 2023-09-25 21:20:53 +02:00
Magnus Norddahl
8267969f9d Use the vertex and index buffers from the accelstruct 2023-09-25 21:20:53 +02:00
RaveYard
b400634db8 Use LIGHTMAP lump surface dimensions before packing the lightmap atlas 2023-09-25 21:20:53 +02:00
RaveYard
b40269e3fe Optimize lightmap lump loading 2023-09-25 21:20:52 +02:00
RaveYard
b8146e323c Fix nullptr crash in HWWall::BuildFFBlock 2023-09-25 21:20:52 +02:00
Magnus Norddahl
ec94204a28 Move vertex transform to the GPU 2023-09-25 21:20:52 +02:00
Christoph Oelckers
472440f073 looks like one occurence of 'vkdoom' slipped through... 2023-09-25 21:20:52 +02:00
Christoph Oelckers
26b162b7d1 - refactored Corona actor so that class AActor can be final again. 2023-09-25 21:20:52 +02:00
Christoph Oelckers
b708356f90 add back two minor things that got lost during the merge. 2023-09-25 21:20:13 +02:00
Christoph Oelckers
beabb8005e fix bad merge of menudef.txt 2023-09-25 21:20:13 +02:00
Magnus Norddahl
d9cce1650e Remember vid_fps cvar (whyyy wasn't this always the case?) 2023-09-25 21:20:13 +02:00
Magnus Norddahl
fd2b1e523c Fix crash bug where an index buffer was bound as a vertex buffer 2023-09-25 21:20:13 +02:00
Rachael Alexanderson
bb111fa96d - compile fixes for mac os 2023-09-25 21:20:13 +02:00
RaveYard
9d197e848d Fix sky dome getting randomly influenced by the lightmaps 2023-09-25 21:20:13 +02:00
RaveYard
1cc0dec8dd Reintroduce lm_max_updates 2023-09-25 21:20:13 +02:00
nashmuhandes
d4dae83cf4 - Add static variants of pulsing and flickering lights
- Clean up and reorganize dynlights.zs
2023-09-25 21:20:12 +02:00
Magnus Norddahl
11e6e1d049 Update the light list (we really need to do this in a less retarded way) when lm_always_update is active 2023-09-25 21:20:12 +02:00
Magnus Norddahl
f45ab9b75c Add cvar for speed testing always updating the lightmap 2023-09-25 21:20:12 +02:00
Magnus Norddahl
b7618d3a5d - Fix VkRaytrace::Raytrace not working properly if called multiple times per frame.
- Only call VkRaytrace::Raytrace once per scene
2023-09-25 21:20:12 +02:00
RaveYard
cdd6336793 Fix lastSurfaceCount growing forever 2023-09-25 21:20:12 +02:00
RaveYard
88a25e0274 Fix missing 'needsUpdate' check before pushing surface to the list 2023-09-25 21:20:12 +02:00
Magnus Norddahl
a6ff0a65d0 Move the visible surface list to HWDrawInfo 2023-09-25 21:20:12 +02:00
Magnus Norddahl
39312e898f Change lightmapper to only use one image 2023-09-25 21:20:12 +02:00
Magnus Norddahl
644500de61 Fix warning 2023-09-25 21:20:12 +02:00
RaveYard
9b812a1f1e Add ton of debug code hidden under 'developer' cvar for lightmap lump loading and other error detection measures 2023-09-25 21:20:11 +02:00
RaveYard
3943123ef6 Add error detections when the surfaces sizes do not match 2023-09-25 21:20:11 +02:00
RaveYard
439c47d399 Enforce ZDRay limit on default sampledistance when loading LIGHTMAP to avoid surface size mismatches. 2023-09-25 21:20:11 +02:00
RaveYard
dec222c9fe Use UVs from the lightmap 2023-09-25 21:20:11 +02:00
RaveYard
00bd608dc5 Initial implementation of V2 lightmap lump loading 2023-09-25 21:20:11 +02:00
RaveYard
3cdf28eb23 Refactor CCMDs in doom_levelmesh.cpp 2023-09-25 21:20:11 +02:00
RaveYard
2036f9a973 Add stat lightmap and surfaceinfo ccmd 2023-09-25 21:20:11 +02:00
RaveYard
294a2c4e3c Workaround to make 3d floor side surfaces detectable 2023-09-25 21:20:11 +02:00
RaveYard
3bf0669c57 Fix 3d floor surfaces accidentaly marked as sky 2023-09-25 21:20:10 +02:00
RaveYard
7c5e2c71b0 Skip portal and sky surfaces 2023-09-25 21:20:10 +02:00
RaveYard
9f8d1effcd Optimize which surfaces are passed to lightmapper 2023-09-25 21:20:10 +02:00
Rachael Alexanderson
7610cade9f - fixes for GCC on Linux 2023-09-25 21:20:10 +02:00
nashmuhandes
a1cab9c9f8 Mark Corona as abstract as it's not meant to be spawned directly 2023-09-25 21:20:10 +02:00
RaveYard
adccddebf8 Fix edge case where the lightmap lump surface touches the edge of the atlas page 2023-09-25 21:20:10 +02:00
RaveYard
3adabd205a Clean unused code 2023-09-25 21:20:10 +02:00
RaveYard
dca5eb13f0 Fix variety of bugs and assume that any surface not contained in LIGHTMAP lump does not need updating 2023-09-25 21:20:10 +02:00
RaveYard
537cd7790d Initial implementation for lightmap lump loading 2023-09-25 21:20:09 +02:00
RaveYard
2b4db4c601 Fix spotlight rotation 2023-09-25 21:20:09 +02:00
RaveYard
2c795a5a8b Fix lightmapper still using hacks to detect levelmesh changes 2023-09-25 21:20:09 +02:00
Magnus Norddahl
776b615e10 Delay creating the accel struct until frame start 2023-09-25 21:20:09 +02:00
RaveYard
6a2135b315 Remove hacks associated with SetLevelMesh 2023-09-25 21:20:09 +02:00
Magnus Norddahl
d59be13830 Fix some validation errors 2023-09-25 21:20:09 +02:00
RaveYard
f975d12938 Fix CreateIndexedSectorVerticesLM to prevent holes in the floors/ceilings from appearing 2023-09-25 21:20:09 +02:00