Add option for smooth DDGI cascades blending

This commit is contained in:
Wojtek Figat
2024-07-18 23:51:03 +02:00
parent 03898a064a
commit 3aa8e67551
7 changed files with 115 additions and 57 deletions

View File

@@ -21,8 +21,9 @@ Quality Graphics::ShadowMapsQuality = Quality::Medium;
bool Graphics::AllowCSMBlending = false;
Quality Graphics::GlobalSDFQuality = Quality::High;
Quality Graphics::GIQuality = Quality::High;
bool Graphics::GICascadesBlending = false;
PostProcessSettings Graphics::PostProcessSettings;
bool Graphics::SpreadWorkload = true;
bool Graphics::SpreadWorkload = false;
#if GRAPHICS_API_NULL
extern GPUDevice* CreateGPUDeviceNull();
@@ -69,6 +70,7 @@ void GraphicsSettings::Apply()
Graphics::ShadowMapsQuality = ShadowMapsQuality;
Graphics::GlobalSDFQuality = GlobalSDFQuality;
Graphics::GIQuality = GIQuality;
Graphics::GICascadesBlending = GICascadesBlending;
Graphics::PostProcessSettings = ::PostProcessSettings();
Graphics::PostProcessSettings.BlendWith(PostProcessSettings, 1.0f);
#if !USE_EDITOR // OptionsModule handles fallback fonts in Editor

View File

@@ -64,6 +64,11 @@ public:
/// </summary>
API_FIELD() static Quality GIQuality;
/// <summary>
/// Enables cascades splits blending for Global Illumination.
/// </summary>
API_FIELD() static bool GICascadesBlending;
/// <summary>
/// The default Post Process settings. Can be overriden by PostFxVolume on a level locally, per camera or for a whole map.
/// </summary>