From b7407fa9d7a917f7d62a7a2e12f96e90af11215c Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 20 Aug 2024 13:45:54 -0700 Subject: 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. --- globals.cginc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'globals.cginc') 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) -- cgit v1.2.3