浏览代码

Fixex rendering issue caused by missing msaa in the depth texture.

/RenderPassXR_Sandbox
Felipe Lira 7 年前
当前提交
fe87000e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs

2
ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


if (postProcess)
{
cmd.GetTemporaryRT(m_CameraDepthProperty, rtWidth, rtHeight, kCameraDepthBufferBits, FilterMode.Bilinear);
cmd.GetTemporaryRT(m_CameraDepthProperty, rtWidth, rtHeight, kCameraDepthBufferBits, FilterMode.Bilinear, RenderTextureFormat.Depth, RenderTextureReadWrite.Default, msaaSamples);
depthRenderTargetIdentifier = m_CameraDepthRTID;
}
}

正在加载...
取消
保存