summaryrefslogtreecommitdiffstats
path: root/globals.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-08-20 13:45:54 -0700
committeryum <yum.food.vr@gmail.com>2024-08-20 13:45:54 -0700
commitb7407fa9d7a917f7d62a7a2e12f96e90af11215c (patch)
treeb370eee4fb844036ac767eeb62ce166359225682 /globals.cginc
parentbf9496af5f27d548224689a123e97546fc2053b7 (diff)
Add normals replace option to matcap
Also add mix factor slider so you can animate matcap opacity. This is useful for adding things like bodysuits.
Diffstat (limited to 'globals.cginc')
-rw-r--r--globals.cginc12
1 files changed, 12 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc
index d77b5e9..4bedf19 100644
--- a/globals.cginc
+++ b/globals.cginc
@@ -305,9 +305,15 @@ float _Matcap0_Mask_Invert;
texture2D _Matcap0_Mask2;
float _Matcap0_Mask2_Invert;
float _Matcap0Str;
+float _Matcap0MixFactor;
float _Matcap0Quantization;
float _Matcap0Mode;
float _Matcap0Emission;
+#if defined(_MATCAP0_NORMAL)
+texture2D _Matcap0Normal;
+float4 _Matcap0Normal_ST;
+float _Matcap0Normal_Str;
+#endif
#endif
#if defined(_MATCAP1)
@@ -318,9 +324,15 @@ float _Matcap1_Mask_Invert;
texture2D _Matcap1_Mask2;
float _Matcap1_Mask2_Invert;
float _Matcap1Str;
+float _Matcap1MixFactor;
float _Matcap1Quantization;
float _Matcap1Mode;
float _Matcap1Emission;
+#if defined(_MATCAP1_NORMAL)
+texture2D _Matcap1Normal;
+float4 _Matcap1Normal_ST;
+float _Matcap1Normal_Str;
+#endif
#endif
#if defined(_RIM_LIGHTING0)