浏览代码

Merge pull request #1398 from Unity-Technologies/Fix-issue-with-SetViewmporAndClear

Fix issue with SetViewPortAndClear not call correctly
/main
GitHub 7 年前
当前提交
eee022ec
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      com.unity.render-pipelines.high-definition/HDRP/HDUtils.cs

3
com.unity.render-pipelines.high-definition/HDRP/HDUtils.cs


public static void SetRenderTarget(CommandBuffer cmd, HDCamera camera, RenderTargetIdentifier[] colorBuffers, RTHandleSystem.RTHandle depthBuffer, ClearFlag clearFlag, Color clearColor)
{
cmd.SetRenderTarget(colorBuffers, depthBuffer);
SetViewport(cmd, camera, depthBuffer);
CoreUtils.ClearRenderTarget(cmd, clearFlag, clearColor);
SetViewportAndClear(cmd, camera, depthBuffer, clearFlag, clearColor);
}
// Scaling viewport is done for auto-scaling render targets.

正在加载...
取消
保存