Commit Graph

229 Commits

Author SHA1 Message Date
Wojtek Figat
e7f1afdfaa Fix GlobalSDF tracing artifacts in reflections by using occlusion bias relative to each cascade voxel size
#2743
2024-08-15 12:04:39 +02:00
Wojtek Figat
f025f923ae Increase limit on Global Surface Atlas objects culling to prevent artifacts in dense scenes 2024-08-12 15:35:29 +02:00
Wojtek Figat
63bee0c78d Add IndirectLightingIntensity to Sky for GI intensity control 2024-08-12 15:34:08 +02:00
Wojtek Figat
bcb0200435 Fix GPU-based SDF generation to reject negative distance from far away triangles 2024-08-12 10:55:27 +02:00
Wojtek Figat
ffb760d8f3 Fix GPU particles issues with Global SDF far away from scene geometry 2024-08-05 22:43:00 +02:00
Wojtek Figat
bc313c8630 Merge remote-tracking branch 'origin/master' into 1.9 2024-08-05 20:00:39 +02:00
Wojtek Figat
23fcfb4eb2 Code cleanup
#2717
2024-08-05 19:44:06 +02:00
Wojtek Figat
a49fc1c5d1 Merge branch 'forward-software-refl' of https://github.com/HydrogenC/FlaxEngine into HydrogenC-forward-software-refl 2024-08-05 19:04:28 +02:00
Wojtek Figat
f21b259376 Various fixes after merge with Windows ARM pr 2024-07-25 08:34:51 +02:00
Wojtek Figat
e9144ff834 Fix blending between DDGI cascades on the end of the range 2024-07-24 12:21:50 +02:00
Wojtek Figat
6f3d1cdd0a Optimize Global Surface Atlas objects culling with shared thread group pre-cull 2024-07-24 11:46:20 +02:00
Wojtek Figat
3f9989ea57 Add utility Packing.hlsl shader for colors and vectors packing 2024-07-19 13:37:09 +02:00
Wojtek Figat
53ca33f301 Add option to sample Global SDF from higher cascade 2024-07-19 00:30:06 +02:00
Wojtek Figat
3945e1416b Add improved Global SDF sampling at empty areas 2024-07-19 00:27:30 +02:00
Wojtek Figat
3aa8e67551 Add option for smooth DDGI cascades blending 2024-07-18 23:51:03 +02:00
Wojtek Figat
03898a064a Optimize DDGI probes border pixels to be copied within probe update, rather than via separate dispatch 2024-07-18 19:51:01 +02:00
Wojtek Figat
aeff147b6d Optimize and refactor DDGI to use linear attention per-probe to dynamically control ray count and blend speed
Probes will use lower ray count when behind the camera or not correlated with the view direction or far from geometry.
Probes nearby camera or with high instability in irradiance will maintain higher ray count.
Probes that use less rays will have slower blending to reduce artifacts.
Added probe instability, attention and stats debugging for devs.
2024-07-18 08:38:23 +02:00
Wojtek Figat
352913ba14 Add random per-probe rotation for rays tracing in DDGI 2024-07-11 14:48:24 +02:00
Wojtek Figat
6b06f1dbcf Optimize Global SDF to use 8-bit storage (50% less memory usage) 2024-07-10 13:22:25 +02:00
Wojtek Figat
082a5819cd Optimize GlobalSurfaceAtlasPass by ignoring GBuffer2 properties (diffuse-only surfaces) 2024-07-08 16:40:59 +02:00
Wojtek Figat
ae2b3d361e Fix shader warning 2024-07-08 12:56:31 +02:00
Wojtek Figat
00a9c48fec Optimize probes count multiplication in DDGI shader 2024-07-03 08:51:58 +02:00
Wojtek Figat
08ef7c93ea Refactor draw calls drawing to use single objects buffer and better materials batching 2024-07-02 00:52:22 +02:00
Wojtek Figat
516ed3e9a0 Cleanup some rendering code 2024-06-28 21:21:17 +02:00
ExMatics HydrogenC
a5b00fa718 Resolve problems in code review 2024-06-19 10:58:27 +08:00
ExMatics HydrogenC
9b3ff05af7 Remove debug code 2024-06-18 21:47:11 +08:00
ExMatics HydrogenC
9062c04ef0 Complete sdf reflections 2024-06-18 21:25:12 +08:00
Wojtek Figat
0d48ac8fc2 Add smoother DDGi probe relocation when old position is visible from new position 2024-06-18 15:05:21 +02:00
Wojtek Figat
2c4de9878e Improve DDGI cascade transitions to be smoother 2024-06-18 13:22:10 +02:00
Wojtek Figat
611961cefe Improve DDGI cascade selection by using biased world position 2024-06-18 10:52:28 +02:00
Wojtek Figat
87aa23107d Fix shadow sharpness processing 2024-06-17 18:59:13 +02:00
Wojtek Figat
6e0dd2064a Add nearby probes search to fill cells with missing GI data
#1614
2024-06-17 18:25:11 +02:00
ExMatics HydrogenC
5f939430ee Initial commit for forward software reflection 2024-06-17 23:00:48 +08:00
Wojtek Figat
e1bede1bf6 Merge remote-tracking branch 'origin/master' into 1.9 2024-06-13 17:07:37 +02:00
Wojtek Figat
eeede88fb8 Add more precise Global SDF raycasting nearby geometry (at cost of performance) 2024-06-13 17:05:31 +02:00
Wojtek Figat
2f688892ea Fix DDGI probes scrolling to properly handle bigger scroll deltas 2024-06-13 17:04:29 +02:00
Wojtek Figat
5c5fad6bb4 Refactor DDGI probe relocation algorithm to result in smoother and more precise placement
#754 #1614
2024-06-13 17:03:23 +02:00
Olly Rybak
2a4a5d2519 Merge branch 'grid-update' of https://github.com/Swiggies/FlaxEngine into Swiggies-grid-update
#2663
2024-06-10 23:17:39 +02:00
Wojtek Figat
66f9374477 Add improved terrain rasterization into Global SDF
#754
2024-06-08 13:14:20 +02:00
Wojtek Figat
bc01e6369e Fix GlobalSDF mip sampling artifacts on edges of distance limit 2024-06-06 13:46:29 +02:00
Wojtek Figat
a232dac196 Fix GlobalSDF sampling in materials to properly read far cascades 2024-06-06 12:10:44 +02:00
Wojtek Figat
96303e57ec Fix terrain SDF thickness to be fixed at 300 units 2024-06-05 13:43:50 +02:00
Wojtek Figat
c26649a0a8 Improve abdbd1ee64 to better handle cascade transitions 2024-06-05 13:43:34 +02:00
Wojtek Figat
0620310f4f Add improved Global Surface Atlas lighting at far cascades and cascade borders 2024-06-04 10:53:41 +02:00
Wojtek Figat
abdbd1ee64 Add improved Global SDF tracing when going over different cascades 2024-06-04 10:47:37 +02:00
Wojtek Figat
3c5d2f8b47 Skip ddgi probes data preload to reduce memory wait time 2024-06-03 22:29:00 +02:00
Wojtek Figat
aad428210d Improve DDGI quality by not using lower-res cascade fallback 2024-06-02 23:02:20 +02:00
Wojtek Figat
a08954f7db Fix CSM shadows intensity due to sharpness trick 2024-06-02 22:38:46 +02:00
Wojtek Figat
79ee6a973e Fix GlobalSDF for meshes intersections for negative distances inside the geometry 2024-06-02 12:06:25 +02:00
Wojtek Figat
7e316a1305 Fix SSAO flickering artifacts in cooked game (disable depth mips usage) 2024-05-31 11:35:38 +02:00