浏览代码

Fix issue with motion vector in scene view

/main
sebastienlagarde 6 年前
当前提交
44bfcd3c
共有 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
}
}

正在加载...
取消
保存