diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index ffd2b61d5a9..3bd45d2c6b3 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -104,6 +104,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed cubemap static preview not updated when the asset is imported. - Fixed wizard DXR setup on non-DXR compatible devices. - Fixed Custom Post Processes affecting preview cameras. +- Fixed issue with lens distortion breaking rendering. ### Changed - Preparation pass for RTSSShadows to be supported by render graph. 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); } }