Fix a69bf9d519c472f0f8378e6f1e061ddfe0556a4e
This commit is contained in:
@@ -243,7 +243,7 @@ void ShadowsPass::Prepare(RenderContext& renderContext, GPUContext* context)
|
||||
if (shadowMapsQuality != _currentShadowMapsQuality)
|
||||
updateShadowMapSize();
|
||||
auto shadowsQuality = Graphics::ShadowsQuality;
|
||||
maxShadowsQuality = Math::Clamp(Math::Min<int32>(static_cast<int32>(shadowsQuality), static_cast<int32>(view.MaxShadowsQuality)), 0, static_cast<int32>(Quality::MAX));
|
||||
maxShadowsQuality = Math::Clamp(Math::Min<int32>(static_cast<int32>(shadowsQuality), static_cast<int32>(view.MaxShadowsQuality)), 0, static_cast<int32>(Quality::MAX) - 1);
|
||||
|
||||
// Use the current render view to sync model LODs with the shadow maps rendering stage
|
||||
_shadowContext.LodProxyView = &renderContext.View;
|
||||
|
||||
Reference in New Issue
Block a user