Commit graph

1,562 commits

Author SHA1 Message Date
Magnus Norddahl
7f77dc3d70 Bake probes on the GPU without downloading them to system memory
Only apply probes after a full pass has completed
Stop baking after 5 iterations
2025-07-10 01:03:30 +02:00
Magnus Norddahl
50183606d2 Correctly display the light probe locations 2025-07-09 15:44:04 +02:00
Magnus Norddahl
ad1d8fe90a Add r_showlights for visualizing where light sources and probes are 2025-07-09 15:32:21 +02:00
Magnus Norddahl
af6ec929cc Move lightmap atlas textures and light probes to the bindless textures array as its impossible to predict up front how many we need 2025-07-08 02:59:10 +02:00
Dileep V. Reddy
8d1a2c39f4 Squashing a non-visual rendering bug in stacked sector portals and reflective flats. 2025-07-07 22:44:37 +02:00
Magnus Norddahl
d1c6fbe61f Misc lightmapper adjustments 2025-06-24 15:04:16 +02:00
dpjudas
e1ec7b2d85 Add partner subsectors to surface list for each subsector 2025-06-24 04:04:29 +02:00
Magnus Norddahl
10a8c85c1f Polyobjs can't use the sidedef light list 2025-06-23 22:21:47 +02:00
Magnus Norddahl
8220991e10 Fix polyobj using invalid vertices in the level mesh 2025-06-23 22:01:42 +02:00
Magnus Norddahl
c8509d000c Fix some warnings reported by gcc 2025-06-22 08:01:47 +02:00
Magnus Norddahl
7f06d3d222 Fix stale pointers when the mesh arrays get resized 2025-06-13 15:21:50 +02:00
nashmuhandes
8def045ab8 Rename this to make more sense 2025-06-13 12:59:32 +08:00
nashmuhandes
a39c84a77a Define the shadow casting style on an Actor using a property. Currently only for lightmaps. 2025-06-13 12:57:02 +08:00
Magnus Norddahl
ad4a923cc9 Remove the mesh limits and resize the GPU buffers as needed 2025-06-11 23:13:07 +02:00
nashmuhandes
c40a36ea7c Allow lm_dynamic to be able to set level-wide in ZDRayInfo 2025-06-12 00:23:36 +08:00
Ricardo Luís Vaz Silva
d55409645f iterate over non-thinking statnums for static models 2025-06-11 22:46:31 +08:00
nashmuhandes
ec9e5db3e3 Enable lightmapped models by default, but keep CVar-gating as a debugging option 2025-06-11 13:18:49 +08:00
Ricardo Luís Vaz Silva
d42ebe9760 limit levelmesh models to StaticMapModel class 2025-06-11 03:55:34 +02:00
Magnus Norddahl
3f1dcce970 Bake models into the level mesh 2025-06-11 03:38:40 +02:00
Magnus Norddahl
cfe282f4bd Model rendering to mesh builder 2025-06-10 20:32:27 +02:00
Ricardo Luís Vaz Silva
daab336784 make lm_dynlights toggling work 2025-06-01 01:10:42 +02:00
Ricardo Luís Vaz Silva
42e20f248d force allow light updates when lm_dynlights is on 2025-06-01 01:10:42 +02:00
Magnus Norddahl
88c57a6677 Draw decals 2025-06-01 01:06:51 +02:00
Magnus Norddahl
8d10617762 Disable skyhack for level mesh and fix frustum test against skies 2025-05-31 23:57:38 +02:00
Magnus Norddahl
1d635d9a39 Add missing lower and upper 2025-05-31 20:00:29 +02:00
Magnus Norddahl
bda01dec98 Hook up sector portals 2025-05-31 17:45:42 +02:00
dpjudas
6da5f8e83f Add the missing draw list types to LevelMeshDrawType 2025-05-31 04:09:48 +02:00
Magnus Norddahl
2086f8ffa6 Fix culling lines too close to the camera position 2025-05-30 23:27:43 +02:00
Magnus Norddahl
2121047fa2 Cull lines not visible from the camera 2025-05-30 22:20:19 +02:00
Magnus Norddahl
4de06b3175 Turn off the light tiles 2025-05-30 20:43:30 +02:00
Magnus Norddahl
a71c050062 Don't do a copy 2025-05-30 19:50:56 +02:00
Magnus Norddahl
1791167fe5 Draw sorted by pipeline 2025-05-30 18:52:44 +02:00
Magnus Norddahl
83441734da Improve side and sector draw performance a bit 2025-05-30 02:19:24 +02:00
dpjudas
3b34a9d138 Fix compile error 2025-05-29 12:24:27 +02:00
Magnus Norddahl
00e200559a Fix crash for uneven core count and clock the draw times 2025-05-29 04:22:14 +02:00
Magnus Norddahl
c7a5914609 More reduce on the worker threads 2025-05-29 04:07:23 +02:00
Magnus Norddahl
b5f309ade9 Fix sprites 2025-05-29 03:08:09 +02:00
Magnus Norddahl
858013e607 Slice the BSP and process it on worker threads 2025-05-29 02:09:29 +02:00
Magnus Norddahl
3e1f22e4c0 Move CheckUpdate to main thread and use the portal clip 2025-05-29 01:21:20 +02:00
Magnus Norddahl
ead947b8b0 Add BSP walker class that can be run on multiple threads 2025-05-29 01:02:21 +02:00
dpjudas
9916b96e23 DispatchLightTiles seems to be crashing in some configurations 2025-05-28 03:21:43 +02:00
dpjudas
cc92dda41a Avoid applying state on every draw 2025-05-26 04:26:36 +02:00
Magnus Norddahl
addddcd8ed Use clipper to find visible walls for hw_levelmesh 2025-05-26 02:03:47 +02:00
Magnus Norddahl
f302f03287 Change level mesh draw code to draw ranges in the mesh rather than the entire mesh 2025-05-25 18:18:29 +02:00
Ricardo Luís Vaz Silva
44710c6b1f implement linearity for cpu spritelight 2025-05-21 11:55:01 +08:00
Magnus Norddahl
a85cd66747 Use the tonemap PP pass to convert blended render styles back to palette colors 2025-05-20 04:09:31 +02:00
Magnus Norddahl
3a9373da6c Don't draw translucent stuff with indexed textures 2025-05-20 03:41:20 +02:00
Magnus Norddahl
ac335a5fbf Apply colormaps 2025-05-20 02:59:52 +02:00
Magnus Norddahl
990ce7c6c9 Render scene with indexed textures for vid_rendermode 2 2025-05-19 05:55:03 +02:00
Ricardo Luís Vaz Silva
56e94cc268 don't use per-pixel lighting for particles/visualthinkers 2025-05-17 22:56:51 +08:00