Commit Graph

216 Commits

Author SHA1 Message Date
mafiesto4 e9144ff834 Fix blending between DDGI cascades on the end of the range 2024-07-24 12:21:50 +02:00
mafiesto4 6f3d1cdd0a Optimize Global Surface Atlas objects culling with shared thread group pre-cull 2024-07-24 11:46:20 +02:00
mafiesto4 3f9989ea57 Add utility Packing.hlsl shader for colors and vectors packing 2024-07-19 13:37:09 +02:00
mafiesto4 53ca33f301 Add option to sample Global SDF from higher cascade 2024-07-19 00:30:06 +02:00
mafiesto4 3945e1416b Add improved Global SDF sampling at empty areas 2024-07-19 00:27:30 +02:00
mafiesto4 3aa8e67551 Add option for smooth DDGI cascades blending 2024-07-18 23:51:03 +02:00
mafiesto4 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
mafiesto4 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
mafiesto4 352913ba14 Add random per-probe rotation for rays tracing in DDGI 2024-07-11 14:48:24 +02:00
mafiesto4 6b06f1dbcf Optimize Global SDF to use 8-bit storage (50% less memory usage) 2024-07-10 13:22:25 +02:00
mafiesto4 082a5819cd Optimize GlobalSurfaceAtlasPass by ignoring GBuffer2 properties (diffuse-only surfaces) 2024-07-08 16:40:59 +02:00
mafiesto4 ae2b3d361e Fix shader warning 2024-07-08 12:56:31 +02:00
mafiesto4 00a9c48fec Optimize probes count multiplication in DDGI shader 2024-07-03 08:51:58 +02:00
mafiesto4 08ef7c93ea Refactor draw calls drawing to use single objects buffer and better materials batching 2024-07-02 00:52:22 +02:00
mafiesto4 516ed3e9a0 Cleanup some rendering code 2024-06-28 21:21:17 +02:00
mafiesto4 0d48ac8fc2 Add smoother DDGi probe relocation when old position is visible from new position 2024-06-18 15:05:21 +02:00
mafiesto4 2c4de9878e Improve DDGI cascade transitions to be smoother 2024-06-18 13:22:10 +02:00
mafiesto4 611961cefe Improve DDGI cascade selection by using biased world position 2024-06-18 10:52:28 +02:00
mafiesto4 87aa23107d Fix shadow sharpness processing 2024-06-17 18:59:13 +02:00
mafiesto4 6e0dd2064a Add nearby probes search to fill cells with missing GI data
#1614
2024-06-17 18:25:11 +02:00
mafiesto4 e1bede1bf6 Merge remote-tracking branch 'origin/master' into 1.9 2024-06-13 17:07:37 +02:00
mafiesto4 eeede88fb8 Add more precise Global SDF raycasting nearby geometry (at cost of performance) 2024-06-13 17:05:31 +02:00
mafiesto4 2f688892ea Fix DDGI probes scrolling to properly handle bigger scroll deltas 2024-06-13 17:04:29 +02:00
mafiesto4 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
mafiesto4 66f9374477 Add improved terrain rasterization into Global SDF
#754
2024-06-08 13:14:20 +02:00
mafiesto4 bc01e6369e Fix GlobalSDF mip sampling artifacts on edges of distance limit 2024-06-06 13:46:29 +02:00
mafiesto4 a232dac196 Fix GlobalSDF sampling in materials to properly read far cascades 2024-06-06 12:10:44 +02:00
mafiesto4 96303e57ec Fix terrain SDF thickness to be fixed at 300 units 2024-06-05 13:43:50 +02:00
mafiesto4 c26649a0a8 Improve abdbd1ee64 to better handle cascade transitions 2024-06-05 13:43:34 +02:00
mafiesto4 0620310f4f Add improved Global Surface Atlas lighting at far cascades and cascade borders 2024-06-04 10:53:41 +02:00
mafiesto4 abdbd1ee64 Add improved Global SDF tracing when going over different cascades 2024-06-04 10:47:37 +02:00
mafiesto4 3c5d2f8b47 Skip ddgi probes data preload to reduce memory wait time 2024-06-03 22:29:00 +02:00
mafiesto4 aad428210d Improve DDGI quality by not using lower-res cascade fallback 2024-06-02 23:02:20 +02:00
mafiesto4 a08954f7db Fix CSM shadows intensity due to sharpness trick 2024-06-02 22:38:46 +02:00
mafiesto4 79ee6a973e Fix GlobalSDF for meshes intersections for negative distances inside the geometry 2024-06-02 12:06:25 +02:00
mafiesto4 7e316a1305 Fix SSAO flickering artifacts in cooked game (disable depth mips usage) 2024-05-31 11:35:38 +02:00
mafiesto4 a8220147ce Improve SDF mip generation to use min-filter 2024-05-29 15:00:03 +02:00
mafiesto4 53d77d3421 Add **Model SDF baking on GPU** via Compute Shader 2024-05-29 14:53:13 +02:00
mafiesto4 f326fa611f Minor sdf imporvements 2024-05-24 12:41:39 +02:00
mafiesto4 182d6d8602 Fix regression in missing shadows inside Global Surface Atals 2024-05-23 21:51:57 +02:00
mafiesto4 681c473e7a Re-enable CSM cascades filter width adjustment 2024-05-23 14:34:26 +02:00
mafiesto4 82bf4238df Add support for decoding NV12 into RGB image 2024-05-15 11:15:19 +02:00
mafiesto4 0d8c9f6626 Add Video module 2024-05-01 01:25:16 +02:00
mafiesto4 890b2da108 Add **shadows caching for static geometry** 2024-04-11 15:35:18 +02:00
mafiesto4 e7bef5e880 Bring back Optimized PCF sampling for shadow maps
61323f8526
2024-04-09 17:55:29 +02:00
mafiesto4 708fba5136 Add variable rate update for shadow maps atlas based on distance to light 2024-04-08 00:04:57 +02:00
mafiesto4 4c8528dcae Remove branch macro as it's just texture sample in lights shader 2024-04-05 12:48:34 +02:00
mafiesto4 0cc6669cbd Reimplement cascaded shadow maps blending via dithering 2024-04-05 10:59:34 +02:00
mafiesto4 8bd409e95d DIsable certain shader features in Volumetric Fog shader 2024-04-04 14:35:22 +02:00