Commit graph

21434 commits

Author SHA1 Message Date
Magnus Norddahl
345d1b561b Disable moving lights for now as that's what caused the FPS drop for lm_always_update 2023-09-25 21:21:06 +02:00
Magnus Norddahl
f55d2675b9 Fix view index binding error 2023-09-25 21:21:06 +02:00
Magnus Norddahl
aec3c62d6a Update zvulkan 2023-09-25 21:21:06 +02:00
Magnus Norddahl
ae4e50a2d4 Use a shader to copy the pixels as vkCmdCopyImage is very slow. Also gives us more flexibility in the future for composite lightmaps 2023-09-25 21:21:06 +02:00
Magnus Norddahl
cf6f349943 Add lightmap stats to stat gpu 2023-09-25 21:21:06 +02:00
Magnus Norddahl
0020ab5758 Minor adjustments 2023-09-25 21:21:06 +02:00
RaveYard
3474dac9d0 Temporary measure to avoid crashing in non-rtx mode 2023-09-25 21:21:06 +02:00
RaveYard
e0b349b331 Add color blending for lights 2023-09-25 21:21:06 +02:00
RaveYard
227634e9f9 Fix surface midtexture yscale 2023-09-25 21:21:06 +02:00
RaveYard
9d20bdef4f Fix uninitialized surface.TextureIndex crash and cleanup 2023-09-25 21:21:05 +02:00
RaveYard
f9fb9056f6 Add alpha testing for TraceFirstHitTriangle 2023-09-25 21:21:05 +02:00
RaveYard
2fdad6e380 WIP wall UVs for levelmesh 2023-09-25 21:21:05 +02:00
RaveYard
3d90a4a2c9 Fix flat UVs 2023-09-25 21:21:05 +02:00
RaveYard
ccc4d6c7e0 Extract flat rotation from SetPlaneTextureRotation 2023-09-25 21:21:05 +02:00
RaveYard
29b8fcf6c8 Add access to vertex indices in frag_raytrace.glsl 2023-09-25 21:21:05 +02:00
RaveYard
ef065fb9b9 Add SurfaceVertex to store texture UVs 2023-09-25 21:21:05 +02:00
RaveYard
6e345c6a08 Fix lights being slightly shifted 2023-09-25 21:20:54 +02:00
Magnus Norddahl
ebdef188ee Add bindless texture support 2023-09-25 21:20:54 +02:00
RaveYard
adc9fb3421 Reimplement ZDRay SectorGroup 2023-09-25 21:20:54 +02:00
RaveYard
8ac1e77421 Add WIP mid texture support 2023-09-25 21:20:54 +02:00
Magnus Norddahl
59a55c3490 Fix crash when trying to render outside the texture 2023-09-25 21:20:54 +02:00
Magnus Norddahl
9c2016ca7c Fix not setting the reset counter 2023-09-25 21:20:53 +02:00
Magnus Norddahl
9b71dd4e21 Only find the tile surfaces once
Only upload the lights once per surface participating in the baking
2023-09-25 21:20:53 +02:00
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