From 24d1a84d2b18ee771585e22ec00fa190afde3df5 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 28 Jun 2024 17:16:03 -0700 Subject: Add quantization to rim lighting Good for artistic effect. --- Editor/tooner.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index 9190f0f..7063972 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -371,6 +371,11 @@ public class ToonerGUI : ShaderGUI { bc, "Rim lighting emission"); + bc = FindProperty($"_Rim_Lighting{i}_Quantization"); + editor.FloatProperty( + bc, + "Rim lighting quantization"); + bc = FindProperty($"_Rim_Lighting{i}_Glitter_Enabled"); enabled = bc.floatValue > 1E-6; EditorGUI.BeginChangeCheck(); -- cgit v1.2.3