summaryrefslogtreecommitdiffstats
path: root/Editor/tooner.cs
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-09-28 15:55:06 -0700
committeryum <yum.food.vr@gmail.com>2024-09-28 15:55:06 -0700
commit2e6a2df16dc5fa9758de06240e44b781b05e6f5a (patch)
tree0236d7d36e5278cacf6bfe56dec2973c83709d0a /Editor/tooner.cs
parentdb11ed0901600e316ac54c2e2d8fdeec46c8af68 (diff)
World lighting bugfixes
Remove explicit world interpolators flag, fix specular reflections.
Diffstat (limited to 'Editor/tooner.cs')
-rw-r--r--Editor/tooner.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index c4c2f5a..869d912 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -2055,15 +2055,6 @@ public class ToonerGUI : ShaderGUI {
MaterialProperty bc;
- bc = FindProperty("_Enable_World_Interpolators");
- bool world_interp = bc.floatValue > 1E-6;
- EditorGUI.BeginChangeCheck();
- world_interp = EditorGUILayout.Toggle("World interpolators",
- world_interp);
- EditorGUI.EndChangeCheck();
- bc.floatValue = world_interp ? 1.0f : 0.0f;
- SetKeyword("_WORLD_INTERPOLATORS", world_interp);
-
bc = FindProperty("_Enable_Brightness_Clamp");
bool brightness_clamp_enabled = bc.floatValue > 1E-6;
EditorGUI.BeginChangeCheck();
@@ -2091,6 +2082,9 @@ public class ToonerGUI : ShaderGUI {
MakeLabel(bc, "Ambient occlusion"),
bc);
SetKeyword("_AMBIENT_OCCLUSION", bc.textureValue);
+ if (bc.textureValue) {
+ editor.TextureScaleOffsetProperty(bc);
+ }
if (bc.textureValue) {
bc = FindProperty("_Ambient_Occlusion_Strength");