浏览代码

Re-enable taaFrameIndex fix now that Postprocess package is updated

/main
Sebastien Lagarde 7 年前
当前提交
7d44c87e
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 9
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Camera/HDCamera.cs

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


// The scene view has no additional data so this will correctly pick the editor preference backround color here.
return camera.backgroundColor.linear;
}
}
}
static Dictionary<Camera, HDCamera> s_Cameras = new Dictionary<Camera, HDCamera>();
static List<Camera> s_Cleanup = new List<Camera>(); // Recycled to reduce GC pressure

isFirstFrame = false;
}
// TEMP: Re-enable this code once we bump the postprocessing package to 0.1.19 (or above)
// current package 0.1.8 don't have the .sampleIndex and it fail with template...
// taaFrameIndex = taaEnabled ? (uint)postProcessLayer.temporalAntialiasing.sampleIndex : 0;
const uint taaFrameCount = 8;
taaFrameIndex = taaEnabled ? (uint)Time.renderedFrameCount % taaFrameCount : 0;
// END TEMP
taaFrameIndex = taaEnabled ? (uint)postProcessLayer.temporalAntialiasing.sampleIndex : 0;
taaFrameRotation = new Vector2(Mathf.Sin(taaFrameIndex * (0.5f * Mathf.PI)),
Mathf.Cos(taaFrameIndex * (0.5f * Mathf.PI)));

正在加载...
取消
保存