浏览代码

Moved the Depth Buffer copy at the right place when in forward (it was done too late, resulting in various bias problem in shadows/ssao)

/stochastic_alpha_test
Julien Ignace 7 年前
当前提交
920bc9cb
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 8
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

8
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


RenderGBuffer(m_CullResults, camera, renderContext, cmd);
// If full forward rendering, we did not do any rendering yet, so don't need to copy the buffer.
// If Deferred then the depth buffer is full (regular GBuffer + ForwardOnly depth prepass are done so we can copy it safely.
if (!m_Asset.renderingSettings.useForwardRenderingOnly)
{
CopyDepthBufferIfNeeded(cmd);
}
// In both forward and deferred, everything opaque should have been rendered at this point so we can safely copy the depth buffer for later processing.
CopyDepthBufferIfNeeded(cmd);
// Required for the SSS and the shader feature classification pass.
PrepareAndBindStencilTexture(cmd);

正在加载...
取消
保存