浏览代码

Fixed depth prepass clearing issue.

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

2
ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


private void DepthPass(ref ScriptableRenderContext context)
{
CommandBuffer cmd = CommandBufferPool.Get("Depth Prepass");
SetRenderTarget(cmd, m_DepthRT);
SetRenderTarget(cmd, m_DepthRT, ClearFlag.Depth);
context.ExecuteCommandBuffer(cmd);
CommandBufferPool.Release(cmd);

正在加载...
取消
保存