diff --git a/Runtime/DitherDown.cs b/Runtime/DitherDown.cs index 77427dc..384db2e 100644 --- a/Runtime/DitherDown.cs +++ b/Runtime/DitherDown.cs @@ -12,6 +12,7 @@ public enum DitherType { Bayer2x2, Bayer3x3, Bayer4x4, Bayer8x8 } #endregion #region Exposed parameters + public BoolParameter enable = new BoolParameter(true); public ClampedIntParameter colorLevels = new ClampedIntParameter(16, 1, 24); public DitherTypeParameter ditherType = new DitherTypeParameter { value = DitherType.Bayer2x2 }; @@ -40,7 +41,7 @@ static class IDs #region Postprocess effect implementation - public bool IsActive() => _material != null; + public bool IsActive() => _material != null && enable.value; public override CustomPostProcessInjectionPoint injectionPoint => CustomPostProcessInjectionPoint.AfterPostProcess; diff --git a/package.json b/package.json index cb1228b..122fb3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ryantwarner.postprocessing.ditherdown", - "version": "1.0.0", + "version": "1.0.1", "displayName": "DitherDown", "description": "Custom post-processing effects for HDRP that dithers and downsamples the entire screen. Based on Kino and KinoEight.", "unity": "2019.4",