浏览代码

HDRenderPipeline: Don't do depth pyramid if no refraction

/main
sebastienlagarde 7 年前
当前提交
1b7573a4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

3
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


void RenderPyramidDepth(HDCamera hdCamera, CommandBuffer cmd, ScriptableRenderContext renderContext, FullScreenDebugMode debugMode)
{
if (!m_FrameSettings.enableRoughRefraction)
return;
using (new ProfilingSample(cmd, "Pyramid Depth", CustomSamplerId.PyramidDepth.GetSampler()))
{
var depthPyramidDesc = m_DepthPyramidBufferDesc;

正在加载...
取消
保存