Fix a69bf9d519c472f0f8378e6f1e061ddfe0556a4e
This commit is contained in:
@@ -64,7 +64,7 @@ void FXAA::Dispose()
|
|||||||
void FXAA::Render(RenderContext& renderContext, GPUTexture* input, GPUTextureView* output)
|
void FXAA::Render(RenderContext& renderContext, GPUTexture* input, GPUTextureView* output)
|
||||||
{
|
{
|
||||||
auto context = GPUDevice::Instance->GetMainContext();
|
auto context = GPUDevice::Instance->GetMainContext();
|
||||||
const auto qualityLevel = Math::Clamp(static_cast<int32>(Graphics::AAQuality), 0, static_cast<int32>(Quality::MAX));
|
const auto qualityLevel = Math::Clamp(static_cast<int32>(Graphics::AAQuality), 0, static_cast<int32>(Quality::MAX) - 1);
|
||||||
|
|
||||||
// Ensure to have valid data
|
// Ensure to have valid data
|
||||||
if (checkIfSkipPass())
|
if (checkIfSkipPass())
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ void SMAA::Dispose()
|
|||||||
void SMAA::Render(RenderContext& renderContext, GPUTexture* input, GPUTextureView* output)
|
void SMAA::Render(RenderContext& renderContext, GPUTexture* input, GPUTextureView* output)
|
||||||
{
|
{
|
||||||
auto context = GPUDevice::Instance->GetMainContext();
|
auto context = GPUDevice::Instance->GetMainContext();
|
||||||
const auto qualityLevel = Math::Clamp(static_cast<int32>(Graphics::AAQuality), 0, static_cast<int32>(Quality::MAX));
|
const auto qualityLevel = Math::Clamp(static_cast<int32>(Graphics::AAQuality), 0, static_cast<int32>(Quality::MAX) - 1);
|
||||||
|
|
||||||
// Ensure to have valid data
|
// Ensure to have valid data
|
||||||
if (checkIfSkipPass())
|
if (checkIfSkipPass())
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ void ShadowsPass::Prepare(RenderContext& renderContext, GPUContext* context)
|
|||||||
if (shadowMapsQuality != _currentShadowMapsQuality)
|
if (shadowMapsQuality != _currentShadowMapsQuality)
|
||||||
updateShadowMapSize();
|
updateShadowMapSize();
|
||||||
auto shadowsQuality = Graphics::ShadowsQuality;
|
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
|
// Use the current render view to sync model LODs with the shadow maps rendering stage
|
||||||
_shadowContext.LodProxyView = &renderContext.View;
|
_shadowContext.LodProxyView = &renderContext.View;
|
||||||
|
|||||||
Reference in New Issue
Block a user