Add variable rate update for shadow maps atlas based on distance to light

This commit is contained in:
Wojtek Figat
2024-04-08 00:04:57 +02:00
parent 7d92779e99
commit 708fba5136
11 changed files with 328 additions and 151 deletions

View File

@@ -38,6 +38,8 @@ void DirectionalLight::Draw(RenderContext& renderContext)
data.VolumetricScatteringIntensity = VolumetricScatteringIntensity;
data.IndirectLightingIntensity = IndirectLightingIntensity;
data.CastVolumetricShadow = CastVolumetricShadow;
data.ShadowsUpdateRate = ShadowsUpdateRate;
data.ShadowsUpdateRateAtDistance = ShadowsUpdateRateAtDistance;
data.ShadowsMode = ShadowsMode;
data.CascadeCount = CascadeCount;
data.Cascade1Spacing = Cascade1Spacing;