Commit graph

21,276 commits

Author SHA1 Message Date
RaveYard
0e8b7175e5 Fix 3d floor surfaces accidentaly marked as sky 2023-09-14 15:14:59 +02:00
RaveYard
06d137e4da Skip portal and sky surfaces 2023-09-14 15:14:59 +02:00
RaveYard
7cd33cc060 Optimize which surfaces are passed to lightmapper 2023-09-14 15:14:59 +02:00
Rachael Alexanderson
1d2427c146 - fixes for GCC on Linux 2023-09-14 11:36:10 +02:00
dpjudas
42e7a20cf3 Merge branch 'lightmapper' 2023-09-14 03:35:24 +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
ac74d63199 Fix spotlight rotation 2023-09-12 17:26:08 +02:00
RaveYard
a340b69c79 Fix lightmapper still using hacks to detect levelmesh changes 2023-09-11 19:51:23 +02:00
Magnus Norddahl
542dfd3666 Delay creating the accel struct until frame start 2023-09-11 14:55:31 +02:00
RaveYard
adfc7082f5 Remove hacks associated with SetLevelMesh 2023-09-11 14:44:17 +02:00
Magnus Norddahl
b0d182c099 Fix some validation errors 2023-09-11 13:49:39 +02:00
RaveYard
4f6fce5bbc Fix CreateIndexedSectorVerticesLM to prevent holes in the floors/ceilings from appearing 2023-09-11 12:50:17 +02:00
Magnus Norddahl
79302a7a58 Fix warnings 2023-09-11 01:31:51 +02:00
RaveYard
67c5201b06 Fix sample distance power of two rounding 2023-09-11 00:44:15 +02:00
RaveYard
abae945fc8 Remove unused code from vk_lightmap.cpp 2023-09-10 23:42:00 +02:00
RaveYard
5912a2c30b Remove awful hardcoded byte offset hack 2023-09-10 23:42:00 +02:00
RaveYard
c9fccc53ec Fix lightmapper running background tasks forever 2023-09-10 23:42:00 +02:00
RaveYard
9ef93da6de Somehow fix lightmaps being corrupted in debug build 2023-09-10 23:42:00 +02:00
RaveYard
6f44e2b5d4 Change surfaceIndices to surfaces 2023-09-10 23:42:00 +02:00
RaveYard
f19e2e712d Fix floors not being updated 2023-09-10 23:42:00 +02:00
RaveYard
d96d1aeffc Visible surfaces are gathered in processing (gathering) render phase and lightmaps drawn before rendering 2023-09-10 23:42:00 +02:00
RaveYard
139ce34535 WIP refactoring of surface gathering 2023-09-10 23:42:00 +02:00
RaveYard
9b091e73ff Fix 3D floors not being marked as seen 2023-09-10 23:42:00 +02:00
RaveYard
0f6ea51769 Minor refactor and fix 3d floors not being detected for lightmap updates 2023-09-10 23:42:00 +02:00
RaveYard
19e9ac1db3 Add cvar lm_scale for multiplying resolution of the lightmap 2023-09-10 23:42:00 +02:00
RaveYard
1466eeefc0 Fix off by one 2023-09-10 23:42:00 +02:00
RaveYard
fd4b3a8e73 Update lightmapper and add limiter to updates 2023-09-10 23:42:00 +02:00
RaveYard
6ccb92ef60 Fix surface index passed to glsl 2023-09-10 23:42:00 +02:00
RaveYard
3386b6ad1a Add walls to the lightmap 2023-09-10 23:42:00 +02:00
RaveYard
2101f37ddd Extend lightmapping stat 2023-09-10 23:42:00 +02:00
RaveYard
b163901862 WIP partial lightmapping 2023-09-10 23:42:00 +02:00
RaveYard
f95ffbe299 WIP surface list for raytracing 2023-09-10 23:42:00 +02:00
nashmuhandes
9f7dd88a4f Mark Corona as abstract as it's not meant to be spawned directly 2023-09-10 23:22:12 +08:00
RaveYard
6078e339fc Fix normals in wall surfaces that are squished into triangles 2023-09-07 10:27:42 +02:00
RaveYard
d212147a3c Fix hw_vertexbuilder lightmap nullptr error 2023-09-07 10:27:42 +02:00
RaveYard
81497cadec Blur changes to avoid darkening the edges 2023-09-06 20:00:02 +02:00
RaveYard
759320b189 CPU tracelight portal fix 2023-09-06 19:04:26 +02:00
RaveYard
c05ef67679 Add ZDRay light intensity support 2023-09-06 19:04:26 +02:00
RaveYard
f360457899 Add ZDRay light intensity support 2023-09-06 15:15:58 +02:00
Magnus Norddahl
38f15881bf Fix clearing frame buffer when flushing 2023-09-05 23:00:30 +02:00
Magnus Norddahl
8885301049 Clear raytrace framebuffer when drawing into it 2023-09-05 18:31:28 +02:00
Magnus Norddahl
6ea7a2ee08 Muted some warnings 2023-09-05 17:59:09 +02:00
RaveYard
0faacaaf0f Fix InitLevelMesh called before line portals are set 2023-09-05 17:54:11 +02:00
Magnus Norddahl
10a5e4d466 Add missing file and only include static lights in the lightmaps 2023-09-05 17:47:55 +02:00
RaveYard
2528048850 Line portal support 2023-09-05 17:43:38 +02:00
RaveYard
036debfac6 Sector portals sunlight only 2023-09-05 17:43:38 +02:00
Magnus Norddahl
963161cce1 Add the 3x3 blur 2023-09-05 17:41:39 +02:00