From 150bab992f578cbb7eff1ab4d26eac2a67d2df49 Mon Sep 17 00:00:00 2001 From: John Parsaie Date: Tue, 25 May 2021 17:36:15 -0400 Subject: [PATCH 1/2] Reconstruct jittered projection matrix far plane (for Infinite ) --- .../Runtime/RenderPipeline/Camera/HDCamera.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera/HDCamera.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera/HDCamera.cs index 9643124bc4f..60406102ae7 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera/HDCamera.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera/HDCamera.cs @@ -1673,6 +1673,11 @@ Matrix4x4 GetJitteredProjectionMatrix(Matrix4x4 origProj) planes.top += planeJitter.y; planes.bottom += planeJitter.y; + // Reconstruct the far plane for the jittered matrix. + // For extremely high far clip planes, the decomposed projection zFar evaluates to infinity. + if (float.IsInfinity(planes.zFar)) + planes.zFar = frustum.planes[5].distance; + proj = Matrix4x4.Frustum(planes); } From 1556e1743910bdd86c1b97bb191f124b61b223a1 Mon Sep 17 00:00:00 2001 From: John Parsaie Date: Tue, 25 May 2021 17:57:43 -0400 Subject: [PATCH 2/2] Changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 8139518e2c6..ec4d90a4304 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -202,6 +202,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed HDRP's ShaderGraphVersion migration management which was broken. - Fixed missing API documentation for LTC area light code. - Fixed diffusion profile breaking after upgrading HDRP (case 1337892). +- Fixed an issue with TAA causing objects not to render at extremely high far flip plane values. ### Changed - Changed Window/Render Pipeline/HD Render Pipeline Wizard to Window/Rendering/HDRP Wizard