浏览代码

restore local post fx (remove global)

/main
Tim Cooper 8 年前
当前提交
d69bfb33
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 9
      Assets/ScriptableRenderLoop/HDRenderPipeline/HDRenderPipeline.cs

9
Assets/ScriptableRenderLoop/HDRenderPipeline/HDRenderPipeline.cs


// for artists to do lighting work until the fully-featured framework is ready
var localPostProcess = camera.GetComponent<PostProcessing>();
/*var globalPostProcess = commonSettings == null
? null
: commonSettings.GetComponent<PostProcessing>();*/
// bool globalActive = globalPostProcess != null && globalPostProcess.enabled;
// if (!localActive && !globalActive)
if (!localActive)
{
var cmd = new CommandBuffer { name = "" };
cmd.Blit(m_CameraColorBufferRT, BuiltinRenderTextureType.CameraTarget);

}
/*var target = localActive ? localPostProcess : globalPostProcess;
target.Render(camera, renderContext, m_CameraColorBufferRT, BuiltinRenderTextureType.CameraTarget);*/
localPostProcess.Render(camera, renderContext, m_CameraColorBufferRT, BuiltinRenderTextureType.CameraTarget);
}
}

正在加载...
取消
保存