Commit graph

21382 commits

Author SHA1 Message Date
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
Magnus Norddahl
49c327e291 Fix warnings 2023-09-25 21:20:09 +02:00
RaveYard
9595bd3b7a Fix sample distance power of two rounding 2023-09-25 21:20:08 +02:00
RaveYard
5c60c9473f Remove unused code from vk_lightmap.cpp 2023-09-25 21:20:08 +02:00
RaveYard
73f3d9166f Remove awful hardcoded byte offset hack 2023-09-25 21:20:08 +02:00
RaveYard
834480995c Fix lightmapper running background tasks forever 2023-09-25 21:20:08 +02:00
RaveYard
9b3a3c6115 Somehow fix lightmaps being corrupted in debug build 2023-09-25 21:20:08 +02:00
RaveYard
f9580f081e Change surfaceIndices to surfaces 2023-09-25 21:20:08 +02:00
RaveYard
8e3b29de33 Fix floors not being updated 2023-09-25 21:20:08 +02:00
RaveYard
f0b1739b2d Visible surfaces are gathered in processing (gathering) render phase and lightmaps drawn before rendering 2023-09-25 21:20:08 +02:00
RaveYard
f279fa69f4 WIP refactoring of surface gathering 2023-09-25 21:20:08 +02:00
RaveYard
f78739196f Fix 3D floors not being marked as seen 2023-09-25 21:20:07 +02:00
RaveYard
2bdb495498 Minor refactor and fix 3d floors not being detected for lightmap updates 2023-09-25 21:20:07 +02:00
RaveYard
934ba83503 Add cvar lm_scale for multiplying resolution of the lightmap 2023-09-25 21:20:07 +02:00
RaveYard
8f202a7e96 Fix off by one 2023-09-25 21:20:07 +02:00
RaveYard
995de6f71d Update lightmapper and add limiter to updates 2023-09-25 21:20:07 +02:00
RaveYard
acc50ef36e Fix surface index passed to glsl 2023-09-25 21:20:07 +02:00
RaveYard
710e151c06 Add walls to the lightmap 2023-09-25 21:20:07 +02:00
RaveYard
17ac3c27b4 Extend lightmapping stat 2023-09-25 21:20:07 +02:00
RaveYard
d19a73641a WIP partial lightmapping 2023-09-25 21:20:06 +02:00
RaveYard
5fc7a4dc41 WIP surface list for raytracing 2023-09-25 21:20:06 +02:00
RaveYard
3a6d5586ef Fix normals in wall surfaces that are squished into triangles 2023-09-25 21:20:06 +02:00
RaveYard
3e96e9010e Fix hw_vertexbuilder lightmap nullptr error 2023-09-25 21:20:06 +02:00
RaveYard
dae78e2a2c Blur changes to avoid darkening the edges 2023-09-25 21:20:06 +02:00
RaveYard
eb7e3faf06 CPU tracelight portal fix 2023-09-25 21:20:06 +02:00
RaveYard
98403698cd Add ZDRay light intensity support 2023-09-25 21:20:06 +02:00
RaveYard
5a91e8573e Add ZDRay light intensity support 2023-09-25 21:20:06 +02:00
Magnus Norddahl
0f77187d25 Fix clearing frame buffer when flushing 2023-09-25 21:20:05 +02:00
Magnus Norddahl
e579095840 Clear raytrace framebuffer when drawing into it 2023-09-25 21:20:05 +02:00
Magnus Norddahl
64358712f0 Muted some warnings 2023-09-25 21:20:05 +02:00