浏览代码

Properly clear the render target

/Yibing-Project-2
Evgenii Golubev 7 年前
当前提交
6bddcac5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/Lighting/Volumetrics/VolumetricLighting.cs

2
ScriptableRenderPipeline/HDRenderPipeline/Lighting/Volumetrics/VolumetricLighting.cs


if (!hasGlobalVolume)
{
// Clear the render target instead of running the shader.
CoreUtils.SetRenderTarget(cmd, m_VBufferLightingRT[0], ClearFlag.Color, Color.black);
CoreUtils.SetRenderTarget(cmd, m_VBufferLightingRT[0]);
return;
}

正在加载...
取消
保存