Add option for smooth DDGI cascades blending
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user