diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index f2e07ae672f..223f316dfac 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed an issue where XR eye textures are recreated multiple times per frame due to per camera MSAA change. - Fixed an issue wehre XR mirror view selector stuck. - Fixed GLES2 shader compilation. +- Fixed issue with lens distortion breaking rendering when enabled and its intensity is 0. ## [10.0.0] - 2019-06-10 ### Added diff --git a/com.unity.render-pipelines.universal/Runtime/Overrides/LensDistortion.cs b/com.unity.render-pipelines.universal/Runtime/Overrides/LensDistortion.cs index 234c99e5dbc..bb5c46de4f9 100644 --- a/com.unity.render-pipelines.universal/Runtime/Overrides/LensDistortion.cs +++ b/com.unity.render-pipelines.universal/Runtime/Overrides/LensDistortion.cs @@ -22,7 +22,7 @@ public sealed class LensDistortion : VolumeComponent, IPostProcessComponent public bool IsActive() { - return !Mathf.Approximately(intensity.value, 0f) + return Mathf.Abs(intensity.value) > 0 && (xMultiplier.value > 0f || yMultiplier.value > 0f); }