summaryrefslogtreecommitdiffstats
path: root/features.cginc
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 /features.cginc
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 'features.cginc')
-rw-r--r--features.cginc5
1 files changed, 5 insertions, 0 deletions
diff --git a/features.cginc b/features.cginc
index d263ca8..2d587be 100644
--- a/features.cginc
+++ b/features.cginc
@@ -143,6 +143,11 @@
#pragma shader_feature_local _DECAL3_TILING_MODE
#pragma shader_feature_local _DECAL3_REPLACE_ALPHA
//endex
+
+//ifex _False_Color_Visualization_Enabled==0
+#pragma shader_feature_local _FALSE_COLOR_VISUALIZATION
+//endex
+
//ifex _Vertex_Domain_Warping_Enabled==0
#pragma shader_feature_local _VERTEX_DOMAIN_WARPING
//endex