Commit graph

862 commits

Author SHA1 Message Date
Magnus Norddahl
3e6943fb4f Code for building a lightprobe AABB tree 2025-07-20 07:54:33 +02:00
Magnus Norddahl
1efa5b19cd Add tile world position information to lightmapper copy pass 2025-07-19 02:28:19 +02:00
Magnus Norddahl
8faa4e65bc Create probemap texture for every lightmap atlas texture 2025-07-18 19:28:57 +02:00
Magnus Norddahl
6abe93a020 Add support for allocating and freeing slots in the bindless texture set 2025-07-18 16:37:02 +02:00
Magnus Norddahl
a9c1fdf23a Add specular highlights to sunlight 2025-07-17 02:52:28 +02:00
Magnus Norddahl
36be6e464c Fix lightmap UV clamp bug 2025-07-16 09:08:10 +02:00
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
9105bf3fb1 Seems we are attempting to use the probes before we have baked textures for them 2025-07-09 13:39:32 +02:00
Magnus Norddahl
7409efd44d Fix light probe uploads 2025-07-08 14:29:28 +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
Magnus Norddahl
a81934810e Turn off RT cores again for the AMDVLK driver. Keeping it enabled for the Mesa variant that doesn't seem to have the problem.
Some checks failed
Continuous Integration / macOS | Debug (push) Has been cancelled
Continuous Integration / Linux Clang 11 | Debug (push) Has been cancelled
Continuous Integration / Visual Studio 2022 | Debug (push) Has been cancelled
Continuous Integration / Linux GCC 9 | MinSizeRel (push) Has been cancelled
Continuous Integration / Linux GCC 12 | RelWithDebInfo (push) Has been cancelled
Continuous Integration / Visual Studio 2022 | RelWithDebInfo (push) Has been cancelled
Continuous Integration / macOS | Release (push) Has been cancelled
Continuous Integration / Linux Clang 15 | Release (push) Has been cancelled
Continuous Integration / Update Latest successful build (push) Has been cancelled
2025-06-25 22:23:56 +02:00
Magnus Norddahl
648b94076f Special thanks to Khronos for just casually throwing in memory alignment requirements in the auto-generated test suite section of the spec. 2025-06-25 21:35:08 +02:00
Magnus Norddahl
523aaedecf Toy with raytracing 2025-06-24 21:20:48 +02:00
Magnus Norddahl
d1c6fbe61f Misc lightmapper adjustments 2025-06-24 15:04:16 +02:00
Magnus Norddahl
b3c2209c47 Stack atlas shelves horizontally rather than vertically 2025-06-24 13:00:57 +02:00
dpjudas
e1ec7b2d85 Add partner subsectors to surface list for each subsector 2025-06-24 04:04:29 +02:00
Magnus Norddahl
e5dd219f56 Workaround AMD driver crash by moving USE_RAYTRACE_PRECISE to a define instead of a specialization constant 2025-06-22 09:32:14 +02:00
Magnus Norddahl
c8509d000c Fix some warnings reported by gcc 2025-06-22 08:01:47 +02:00
Magnus Norddahl
6270d51f6f Validation layer says the fragment shader library needs to know the multisampling sample count 2025-06-22 07:08:56 +02:00
Magnus Norddahl
0d7abc52a4 Fix linear depth image transition validation error 2025-06-22 06:57:17 +02:00
Ricardo Luís Vaz Silva
b1ba81bfcf fix cpu levlemesh 2025-06-19 04:42:12 +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
Magnus Norddahl
03d0177fc9 Oops, wrong value suggested for vk_amd_driver_check 2025-06-11 18:46:48 +02:00
Magnus Norddahl
772b4629e1 Put the AMD driver check behind a CVAR 2025-06-11 18:40:01 +02:00
nashmuhandes
c40a36ea7c Allow lm_dynamic to be able to set level-wide in ZDRayInfo 2025-06-12 00:23:36 +08: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
1791167fe5 Draw sorted by pipeline 2025-05-30 18:52:44 +02:00
dpjudas
cc92dda41a Avoid applying state on every draw 2025-05-26 04:26:36 +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
7461fc202b match gzdoom light limit 2025-05-25 13:54:16 +02: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
5a5c8d4bde Use the game palette to find the material color 2025-05-20 03:20:46 +02:00
dpjudas
3dbb4d7b9c Add lightmap and dynamic lights 2025-05-19 17:23:28 +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
e0897ae8b2 remove broken precise midtexture trace, fix sky tracing for actors 2025-05-16 00:47:50 +02:00
Magnus Norddahl
156d7e7af2 Correctly apply sunlight to line portals 2025-05-13 15:18:33 +02:00
Magnus Norddahl
0c0e29b18d Add sunlight to line portals 2025-05-13 14:38:35 +02:00
Magnus Norddahl
76fb5901d7 Only force baking of tiles where the geometry changed 2025-05-13 01:52:02 +02:00
Magnus Norddahl
2d772dc0f2 GCC doesn't like this static const int for some weird reason... 2025-05-12 20:00:32 +02:00
Magnus Norddahl
be4b0cb67b Stop memory allocations by keeping the RectPacker around 2025-05-12 14:26:24 +02:00
Magnus Norddahl
2c069349a3 Portal and high update count fixes 2025-05-12 00:39:41 +02:00
Magnus Norddahl
6cf3cdb871 Make LevelMeshUpdater responsible for updating the tiles (playsim tells the mesh updater, the level mesh tells the tiles) 2025-05-11 20:11:18 +02:00
Magnus Norddahl
bfb37a89c3 Fix deactivated lightmap light not working 2025-05-11 17:58:07 +02:00
Magnus Norddahl
737b7ece96 Dynamically allocate and free lightmap tiles 2025-05-10 03:07:17 +02:00