浏览代码

Fixed taaFrameIndex in edit mode

/main
Thomas Hourdel 6 年前
当前提交
168ef2f1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Camera/HDCamera.cs

3
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Camera/HDCamera.cs


isFirstFrame = false;
}
const uint taaFrameCount = 8;
taaFrameIndex = taaEnabled ? (uint)Time.renderedFrameCount % taaFrameCount : 0;
taaFrameIndex = taaEnabled ? (uint)postProcessLayer.temporalAntialiasing.sampleIndex : 0;
taaFrameRotation = new Vector2(Mathf.Sin(taaFrameIndex * (0.5f * Mathf.PI)),
Mathf.Cos(taaFrameIndex * (0.5f * Mathf.PI)));

正在加载...
取消
保存