Commit Graph

85 Commits

Author SHA1 Message Date
Wojtek Figat
9c3fd052cd Remove copyright year from source files and update to 2025 2025-04-07 19:22:21 +02:00
Wojtek Figat
b3f37ca041 Refactor Vertex Shader input vertex layout to use GPUVertexLayout defined on Vertex Buffer rather than Vertex Shader
#3044 #2667
2024-12-15 22:10:45 +01: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
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
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
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
6e0dd2064a Add nearby probes search to fill cells with missing GI data
#1614
2024-06-17 18:25:11 +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
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
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
f326fa611f Minor sdf imporvements 2024-05-24 12:41:39 +02:00
Wojtek Figat
182d6d8602 Fix regression in missing shadows inside Global Surface Atals 2024-05-23 21:51:57 +02:00
Wojtek Figat
61323f8526 Refactor shadows rendering to use Shadow Map Atlas 2024-04-04 12:54:07 +02:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Wojtek Figat
fe97429df8 Minor fix 2023-02-18 22:23:59 +01:00
Wojtek Figat
c878c613c7 Update consoles building 2023-02-05 23:48:11 +01:00
Wojtek Figat
ab51ecddb4 Add RenderBuffers::LinkedCustomBuffers to reuse main game viewport rendered state (eg. GI) in sub-rendered view 2023-02-01 11:05:29 +01:00
Wojciech Figat
a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Wojciech Figat
1cf6c5233e Refactor DDGI probes to use variable ray count depending on the probe location relative to the view frustum 2022-12-15 17:33:44 +01:00
Wojtek Figat
8885412350 Fix SSR shader on D3D10 2022-08-31 23:16:29 +02:00
Wojciech Figat
9b816a321c Reduce DDGI probes distance limit to improve performance 2022-08-12 09:53:57 +02:00
Wojciech Figat
22209108c9 Fix Global Surface Atlas on Vulkan 2022-07-29 16:14:07 +02:00
Wojciech Figat
cfb98a39b0 Reduce DDGI flickering in certain lighting scenarios 2022-07-26 13:18:09 +02:00
Wojciech Figat
a2677a25a9 Improve env probes rendering if DDGI is enabled 2022-07-15 16:13:36 +02:00
Wojciech Figat
85f351663b Add Transparent Lighting Modes for material with option to use non-directional shading 2022-07-14 09:22:32 +02:00
Wojciech Figat
0ba1c124f7 Add Global Surface Atlas missing surface data debug visualization 2022-07-08 16:43:25 +02:00
Wojciech Figat
5a366bc1a0 Optimize DDGI probe classify if using non-iterative relocation 2022-07-04 15:45:30 +02:00
Wojciech Figat
e2319ceca3 Improve DDGI probes relocation to search 64 nearby locations around the probe 2022-07-01 14:09:59 +02:00
Wojciech Figat
4007c5e29c Add BounceIntensity to Global Illumination settings 2022-06-30 15:27:31 +02:00
Wojciech Figat
27515585db Improve Global Surface Atlas objects surfaces sampling 2022-06-30 15:14:43 +02:00
Wojciech Figat
56322005e2 Reformat shaders source code 2022-06-28 14:41:29 +02:00
Wojciech Figat
df691e62f8 Various improvements to Global Surface Atlas sampling 2022-06-28 14:10:01 +02:00
Wojciech Figat
443ce106e2 Optimize Global Surface Atlas objects lighting to be less frequent with caching for static lights and objects 2022-06-28 10:38:51 +02:00
Wojciech Figat
d5a529e00a Optimize Global Surface Atlas objects culling to cache up to 32 objects locally per-thread 2022-06-27 16:31:39 +02:00
Wojciech Figat
d8e79101e7 Refactor Global Surface Atlas to not rewrite objects data and use indirection for faster culling 2022-06-27 16:07:54 +02:00
Wojciech Figat
282b9066b8 Improve DDGI quality 2022-06-24 16:17:32 +02:00