Magnus Norddahl
ab7c7cb465
Allocate from the start of the free lists
2024-12-12 20:08:38 +01:00
Magnus Norddahl
c46896599c
Use the SSE2 version in debug builds as its faster when the optimizer isn't running
2024-12-12 20:08:08 +01:00
Magnus Norddahl
9729d8abc0
Fix median not getting initialized
...
Added some SSE2 code that wasn't faster unfortunately
2024-12-11 01:28:52 +01:00
Magnus Norddahl
6190ffecda
Also expand the bbox for the TLAS tree
2024-12-10 23:12:12 +01:00
Magnus Norddahl
bc5bf8ca7b
Increase the bounding box for numerical stability
2024-12-10 23:10:16 +01:00
Boondorl
57202305d6
Added toggle for lm_dynamic
2024-11-02 09:20:23 +01:00
dpjudas
4fee895c2b
Remove unused struct
2024-10-22 02:30:18 +02:00
dpjudas
dfbef085e6
Group lightmap variables and put polyobj walls in a dynamic lightmap atlas
2024-10-22 02:29:12 +02:00
Magnus Norddahl
c866937262
Fix upload bug and skip upload when RT cores are available
2024-10-21 20:50:25 +02:00
dpjudas
9bf6e60021
Fix TLAS to BLAS links not pointing at the root node of the BLAS
2024-10-21 01:38:23 +02:00
dpjudas
8cbef52626
Fix typo making it rebuild every BLAS if level changes
2024-10-21 00:52:33 +02:00
Magnus Norddahl
1073bcfa69
Fix TLAS bug
2024-10-21 00:09:47 +02:00
dpjudas
4a425c4493
Add support for updating the CPU-side accelstruct used for actor tracing
2024-10-20 23:54:15 +02:00
Magnus Norddahl
fee5e3a58b
Fix lightmap lights not updating
2024-10-16 21:38:30 +02:00
Ricardo Luís Vaz Silva
c1442f1c21
clean up HWViewpointUniforms
2024-10-09 04:44:51 +02:00
Ricardo Luís Vaz Silva
04ee3c335e
switch from uniform to shader keys
2024-10-09 04:44:51 +02:00
Ricardo Luís Vaz Silva
37a7907221
Allow setting light attenuation mode from mapinfo
2024-10-09 04:44:51 +02:00
nashmuhandes
5ac0b1b84c
Apply limits to the ZDRayInfo lm_sampledist value
2024-10-02 01:37:30 +08:00
nashmuhandes
9cd2f7530d
Change default LightmapSampleDistance value to match the default value in UDB
2024-10-02 00:54:19 +08:00
Magnus Norddahl
7e83d726ca
Improve light level updates
2024-09-29 14:21:57 +02:00
Magnus Norddahl
76536be804
Use the dynamic lights from the level mesh in the light tiles shader
2024-09-16 18:06:21 +02:00
Magnus Norddahl
b43f84def6
Hook up light tile visibility test
2024-09-16 01:04:53 +02:00
Magnus Norddahl
521e2ed39c
Run the light tiles compute shader
2024-09-14 04:59:39 +02:00
Magnus Norddahl
f0c018fdc6
Update light level in level mesh
2024-09-11 01:39:47 +02:00
nashmuhandes
58fecd4b92
Move depth fade definition to GLDEFS
2024-09-09 18:57:07 +08:00
nashmuhandes
27058efe85
Rename "depth fade falloff" to "depth fade threshold" as it makes more sense
2024-09-09 17:06:04 +08:00
Magnus Norddahl
b2040a0892
Add support for the poor souls on a 386 that can't afford to use full screen
2024-09-08 22:25:24 +02:00
Magnus Norddahl
c62bb7a0f0
Add RenderState.SetDepthFadeFalloff
2024-09-08 20:32:30 +02:00
Magnus Norddahl
d2958d8366
Change how visible surfaces for a tile are collected by the light mapper
2024-09-07 03:11:36 +02:00
Magnus Norddahl
5a1c8131c5
Move inlined functions out of the class definition for better readability
2024-09-07 00:42:49 +02:00
Magnus Norddahl
4655b02f06
Fix using wrong surface for the extra BLAS structures for trace hits
...
Add gl_raytrace for ray tracing the level mesh
2024-09-05 00:15:59 +02:00
Magnus Norddahl
db5f47d14f
Fix SSAO not working in gl_levelmesh
2024-09-04 02:27:10 +02:00
Magnus Norddahl
4b0d4a210a
Remove unused class
2024-09-01 23:47:16 +02:00
Magnus Norddahl
4ba0b47665
Dont draw sectorstack atm
2024-09-01 23:01:39 +02:00
dpjudas
4666fa6241
Split masked from opaque in the level mesh draw lists
2024-09-01 22:44:25 +02:00
Magnus Norddahl
d12cd4d74d
Sort initial draw lists by pipeline
...
Fix applying pipeline state too often for scattered draw ranges
Delay updating sides and sectors until frame start to allow the playsim to mark surfaces dirty multiple times
2024-08-28 19:53:12 +02:00
dpjudas
ddc3b530c7
Fix compile error due to missing include statement
2024-08-26 12:51:16 +02:00
Magnus Norddahl
18db0b49a7
Update level mesh on sector changes
2024-08-25 01:06:44 +02:00
Magnus Norddahl
d28a3571b5
More level mesh buffer fun
2024-08-23 00:01:08 +02:00
Magnus Norddahl
356ad2fe9f
Split doom specific surface data from common/gpu surface data
2024-08-20 02:06:05 +02:00
Magnus Norddahl
e9946bead2
Fix not lights in the internal lightmapper
2024-08-13 23:35:32 +02:00
dpjudas
b6cbaaedbc
Update the bottom level accel structure if vertices or indexes change
2024-08-11 23:03:32 +02:00
Magnus Norddahl
766b558119
Ranges in buffers are so fun!
2024-08-11 20:39:45 +02:00
Magnus Norddahl
e0cba77646
Move levelmeshhelper completely out of the Common folder
...
Connect the level updates to the level mesh
2024-08-11 18:34:03 +02:00
Magnus Norddahl
e80615e167
Move the level mesh dirty ranges to levelmesh so that it can be updated
2024-08-11 17:51:45 +02:00
Ricardo Luís Vaz Silva
8f79753dc0
make sure all texZ functions update the levelmesh
2024-08-11 17:50:36 +02:00
Ricardo Luís Vaz Silva
7456c7685b
make hooks more specific
2024-08-11 17:50:36 +02:00
Ricardo Luís Vaz Silva
467cf2800b
Fix compilation
2024-08-11 17:50:36 +02:00
Dileep V. Reddy
8a5e7449c1
Consolidated isometric mode commits.
2024-08-11 15:55:21 +02:00
Magnus Norddahl
f1b9e68305
Add more dynamic update code to level mesh
2024-08-11 01:15:44 +02:00