summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-02-02 15:46:35 -0800
committeryum <yum.food.vr@gmail.com>2025-02-02 15:46:35 -0800
commit03406b0983e123bb3203a96bfd2f017e58e3e90d (patch)
tree859f888a409e2e92a25baf9597a0d4fae78d829b /Editor
parentff997cfb850ec42a977381a2becf0ccedb2035d9 (diff)
Begin plugging in SSFD
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index 01e30ed..fefee6b 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -3389,6 +3389,7 @@ public class ToonerGUI : ShaderGUI {
Stochastic,
InterleavedGradientNoise,
NoiseMask,
+ SurfaceStableFractalDithering,
}
// unity is made by fucking morons and they don't expose this so i'm
@@ -3504,6 +3505,7 @@ public class ToonerGUI : ShaderGUI {
SetKeyword("_RENDERING_CUTOUT_STOCHASTIC", cmode == CutoutMode.Stochastic);
SetKeyword("_RENDERING_CUTOUT_IGN", cmode == CutoutMode.InterleavedGradientNoise);
SetKeyword("_RENDERING_CUTOUT_NOISE_MASK", cmode == CutoutMode.NoiseMask);
+ SetKeyword("_RENDERING_CUTOUT_SSFD", cmode == CutoutMode.SurfaceStableFractalDithering);
EditorGUI.indentLevel += 1;
{
@@ -3518,6 +3520,13 @@ public class ToonerGUI : ShaderGUI {
} else if (cmode == CutoutMode.InterleavedGradientNoise) {
bc = FindProperty("_Rendering_Cutout_Ign_Seed");
FloatProperty(bc, "Seed");
+ } else if (cmode == CutoutMode.SurfaceStableFractalDithering) {
+ bc = FindProperty("_Rendering_Cutout_SSFD_Scale");
+ FloatProperty(bc, "Scale");
+ bc = FindProperty("_Rendering_Cutout_SSFD_Max_Fwidth");
+ FloatProperty(bc, "Max fwidth");
+ bc = FindProperty("_Rendering_Cutout_SSFD_Noise");
+ TexturePropertySingleLine(MakeLabel(bc, "Noise"), bc);
}
bc = FindProperty("_Rendering_Cutout_Speed");