diff options
| author | yum <yum.food.vr@gmail.com> | 2024-11-03 15:35:40 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-11-03 15:35:40 -0800 |
| commit | 4adbc6dfbf2409f34e11e001db2b434feeeb435f (patch) | |
| tree | ce49b708f24bb0d3d6c76016393af5e7f0ec11a6 /Editor | |
| parent | b7d3cb5d759feab1e44f4cdb01a0c8922bf4f1cb (diff) | |
Add interleaved gradient noise cutout mode
Based on screen space uvs.
Diffstat (limited to 'Editor')
| -rw-r--r-- | Editor/tooner.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs index f6f3da8..53ae1a8 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2365,7 +2365,8 @@ public class ToonerGUI : ShaderGUI { enum CutoutMode { Cutoff, - Stochastic + Stochastic, + InterleavedGradientNoise, } // unity is made by fucking morons and they don't expose this so i'm @@ -2479,6 +2480,7 @@ public class ToonerGUI : ShaderGUI { EditorGUI.EndChangeCheck(); bc.floatValue = (float) cmode; SetKeyword("_RENDERING_CUTOUT_STOCHASTIC", cmode == CutoutMode.Stochastic); + SetKeyword("_RENDERING_CUTOUT_IGN", cmode == CutoutMode.InterleavedGradientNoise); if (cmode == CutoutMode.Cutoff) { bc = FindProperty("_Alpha_Cutoff"); |
