Add GIProbesSpacing and GlobalSurfaceAtlasResolution to global Graphics for runtime editing

#4001
This commit is contained in:
2026-06-21 23:07:17 +02:00
parent f9b691bbbb
commit 3db688e5fd
4 changed files with 17 additions and 4 deletions
+4
View File
@@ -25,7 +25,9 @@ float Graphics::ShadowUpdateRate = 1.0f;
bool Graphics::AllowCSMBlending = false;
Quality Graphics::GlobalSDFQuality = Quality::High;
Quality Graphics::GIQuality = Quality::High;
float Graphics::GIProbesSpacing = 100;
bool Graphics::GICascadesBlending = false;
int32 Graphics::GlobalSurfaceAtlasResolution = 2048;
PostProcessSettings Graphics::PostProcessSettings;
bool Graphics::GammaColorSpace = true;
bool Graphics::SpreadWorkload = true;
@@ -76,7 +78,9 @@ void GraphicsSettings::Apply()
Graphics::AllowCSMBlending = AllowCSMBlending;
Graphics::GlobalSDFQuality = GlobalSDFQuality;
Graphics::GIQuality = GIQuality;
Graphics::GIProbesSpacing = GIProbesSpacing;
Graphics::GICascadesBlending = GICascadesBlending;
Graphics::GlobalSurfaceAtlasResolution = GlobalSurfaceAtlasResolution;
Graphics::PostProcessSettings = ::PostProcessSettings();
Graphics::PostProcessSettings.BlendWith(PostProcessSettings, 1.0f);
Graphics::GammaColorSpace = GammaColorSpace;