Skip to content

Fix first frame of SSR PRB Accumulation #5324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 2, 2022
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ void UpdateSSRConstantBuffer(HDCamera hdCamera, ScreenSpaceReflection settings,
cb._ColorPyramidUvScaleAndLimitPrevFrame = HDUtils.ComputeViewportScaleAndLimit(hdCamera.historyRTHandleProperties.previousViewportSize, hdCamera.historyRTHandleProperties.previousRenderTargetSize);
cb._SsrColorPyramidMaxMip = hdCamera.colorPyramidHistoryMipCount - 1;
cb._SsrDepthPyramidMaxMip = hdCamera.depthBufferMipChainInfo.mipLevelCount - 1;
if (hdCamera.isFirstFrame || hdCamera.cameraFrameCount <= 2)
if (hdCamera.isFirstFrame || hdCamera.cameraFrameCount <= 3)
{
cb._SsrAccumulationAmount = 1.0f;
}
Expand Down