浏览代码

Merge pull request #1425 from Unity-Technologies/Fix-issue-with-motion-vector

Fix issue with motion vector in scene view
/main
GitHub 7 年前
当前提交
9c824f2a
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
      com.unity.render-pipelines.high-definition/HDRP/HDRenderPipeline.cs

8
com.unity.render-pipelines.high-definition/HDRP/HDRenderPipeline.cs


HDUtils.DrawFullScreen(cmd, hdCamera, m_CameraMotionVectorsMaterial, m_VelocityBuffer, m_CameraDepthStencilBuffer, null, 0);
PushFullScreenDebugTexture(hdCamera, cmd, m_VelocityBuffer, FullScreenDebugMode.MotionVectors);
#if UNITY_EDITOR
// In scene view there is no motion vector, so we clear the RT to black
if (hdCamera.camera.cameraType == CameraType.SceneView)
{
HDUtils.SetRenderTarget(cmd, hdCamera, m_VelocityBuffer, m_CameraDepthStencilBuffer, ClearFlag.Color, CoreUtils.clearColorAllBlack);
}
#endif
}
}

正在加载...
取消
保存