From 2f8b9552ad99c525f02f3c48c4e451fa6d5d44e8 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 17 Nov 2024 01:54:27 -0800 Subject: Add brightness clamping to fog Use a nice "almost identity" function to create a smooth transition to the clamped value. --- Editor/tooner.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index df3fa9d..2f87fb3 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -2087,6 +2087,8 @@ public class ToonerGUI : ShaderGUI { RangeProperty(bc, "Ray origin randomization"); bc = FindProperty("_Gimmick_Fog_00_Lod_Half_Life"); FloatProperty(bc, "LOD half life"); + bc = FindProperty("_Gimmick_Fog_00_Max_Brightness"); + RangeProperty(bc, "Max brightness"); bc = FindProperty("_Gimmick_Fog_00_Noise"); TexturePropertySingleLine( MakeLabel(bc, "3D Noise"), -- cgit v1.2.3