From 39dbaa4ec361031f718fac284ee1149ca9de374d Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Fri, 18 Sep 2020 11:09:17 +0200 Subject: [PATCH 1/2] Do different check to see if lens distortion is on --- .../Runtime/PostProcessing/Components/LensDistortion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Components/LensDistortion.cs b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Components/LensDistortion.cs index 681f5cd26b1..f6a01efcb43 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Components/LensDistortion.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Components/LensDistortion.cs @@ -44,7 +44,7 @@ public sealed class LensDistortion : VolumeComponent, IPostProcessComponent /// true if the effect should be rendered, false otherwise. public bool IsActive() { - return !Mathf.Approximately(intensity.value, 0f) + return Mathf.Abs(intensity.value) > 0 && (xMultiplier.value > 0f || yMultiplier.value > 0f); } } From 99b5ecc9183fe111c6b17912c60afffae8690766 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Fri, 18 Sep 2020 11:13:44 +0200 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 c3ae54de7f0..42526b98e6c 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -80,6 +80,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed issue with mipmap debug mode not properly resetting full screen mode (and viceversa). - Added unsupported message when using tile debug mode with MSAA. - Fixed SSGI compilation issues on PS4. +- Fixed issue with lens distortion breaking rendering. ### Changed - Preparation pass for RTSSShadows to be supported by render graph.