summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-01-27 16:43:09 -0800
committeryum <yum.food.vr@gmail.com>2025-01-27 16:43:09 -0800
commit8d2c11025c372e8b4ab4e02daf9f7495b162d3f8 (patch)
tree991f11a89ce9bea0ef4a39380bdf62266cee2427 /Editor
parent5f0746ebbf8eb6216281424a4acbefb68dc13c59 (diff)
Restore spherical boundary to fog gimmick
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Editor/tooner.cs b/Editor/tooner.cs
index e743dc2..9edd3a7 100644
--- a/Editor/tooner.cs
+++ b/Editor/tooner.cs
@@ -2646,6 +2646,7 @@ public class ToonerGUI : ShaderGUI {
enum GimmickFog00BoundaryType {
Cylinder = 0,
Plane = 1,
+ Sphere = 2,
}
void DoGimmickFog0() {
@@ -2676,7 +2677,7 @@ public class ToonerGUI : ShaderGUI {
EditorGUI.EndChangeCheck();
bc.floatValue = (int) boundary_type;
- if (boundary_type == GimmickFog00BoundaryType.Cylinder) {
+ if (boundary_type == GimmickFog00BoundaryType.Cylinder || boundary_type == GimmickFog00BoundaryType.Sphere) {
bc = FindProperty("_Gimmick_Fog_00_Radius");
FloatProperty(bc, "Radius");
} else if (boundary_type == GimmickFog00BoundaryType.Plane) {
@@ -2685,9 +2686,14 @@ public class ToonerGUI : ShaderGUI {
bc = FindProperty("_Gimmick_Fog_00_Plane_Center");
VectorProperty(bc, "Plane center");
}
+ SetKeyword("_GIMMICK_FOG_00_BOUNDARY_CYLINDER", boundary_type == GimmickFog00BoundaryType.Cylinder);
+ SetKeyword("_GIMMICK_FOG_00_BOUNDARY_SPHERE", boundary_type == GimmickFog00BoundaryType.Sphere);
+ SetKeyword("_GIMMICK_FOG_00_BOUNDARY_PLANE", boundary_type == GimmickFog00BoundaryType.Plane);
bc = FindProperty("_Gimmick_Fog_00_Step_Size_Factor");
FloatProperty(bc, "Step size multiplier");
+ bc = FindProperty("_Gimmick_Fog_00_Initial_Offset");
+ FloatProperty(bc, "Initial offset");
bc = FindProperty("_Gimmick_Fog_00_Max_Ray");
FloatProperty(bc, "Max ray length (m)");
bc = FindProperty("_Gimmick_Fog_00_Noise_Scale");