summaryrefslogtreecommitdiffstats
path: root/2ner.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-03-20 18:57:24 -0700
committeryum <yum.food.vr@gmail.com>2025-03-20 18:57:24 -0700
commitb377dd05175d5bffaeef9c55051cd396c127daef (patch)
treef868dbd0da08ac1d914e7d6c3fa8a7718bfc83af /2ner.shader
parentee3db7ea6f80e31e31958848b5138e2a5c848af5 (diff)
Add false color visualizer
Based on Sotalo's Furality talk - I wanted a way to visualize when my albedo is outside the recommended [0.025, 90]% brightness range. This feature does that. Dark is rendered red, bright is rendered blue.
Diffstat (limited to '2ner.shader')
-rw-r--r--2ner.shader8
1 files changed, 8 insertions, 0 deletions
diff --git a/2ner.shader b/2ner.shader
index 6d8a289..fdcb3fa 100644
--- a/2ner.shader
+++ b/2ner.shader
@@ -468,6 +468,14 @@ Shader "yum_food/2ner"
[HideInInspector] m_end_Face_Me("Face me", Float) = 0
//endex
+ //ifex _False_Color_Visualization_Enabled==0
+ [HideInInspector] m_start_False_Color_Visualization("False color", Float) = 0
+ [ThryToggle(_FALSE_COLOR_VISUALIZATION)] _False_Color_Visualization_Enabled("Enable", Float) = 0
+ [MaterialToggle] _False_Color_Visualization_Luminance("Luminance", Float) = 0
+ [MaterialToggle] _False_Color_Visualization_Luminance_Bounded("Luminance (bounded)", Float) = 0
+ [HideInInspector] m_end_False_Color_Visualization("False color", Float) = 0
+ //endex
+
//ifex _Vertex_Domain_Warping_Enabled==0
[HideInInspector] m_start_Vertex_Domain_Warping("Vertex domain warping", Float) = 0
[ThryToggle(_VERTEX_DOMAIN_WARPING)]_Vertex_Domain_Warping_Enabled("Enable", Float) = 0