浏览代码

Merge pull request #1658 from Unity-Technologies/distortion-lag-fix

Fixed distortion 1-frame delay
/main
GitHub 6 年前
当前提交
d8b4e92e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.render-pipelines.high-definition/CHANGELOG.md
  2. 2
      com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDRenderPipeline.cs

2
com.unity.render-pipelines.high-definition/CHANGELOG.md


## [3.0.0-preview]
- Fixed an issue with distortion that was using previous frame instead of current frame
## [2.0.5-preview]

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


using (new ProfilingSample(cmd, "ApplyDistortion", CustomSamplerId.ApplyDistortion.GetSampler()))
{
var colorPyramidRT = hdCamera.GetPreviousFrameRT((int)HDCameraFrameHistoryType.ColorPyramid);
var colorPyramidRT = hdCamera.GetCurrentFrameRT((int)HDCameraFrameHistoryType.ColorPyramid);
var pyramidScale = m_BufferPyramid.GetPyramidToScreenScale(hdCamera, colorPyramidRT);
// Need to account for the fact that the gaussian pyramid is actually rendered inside the camera viewport in a square texture so we mutiply by the PyramidToScreen scale

正在加载...
取消
保存