From 86680bb2efb0854d95de8ca1dabbd7399d806dd9 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 6 Mar 2026 14:56:19 -0800 Subject: Add three more decal slots --- globals.cginc | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) (limited to 'globals.cginc') diff --git a/globals.cginc b/globals.cginc index 263c07e..44417ac 100755 --- a/globals.cginc +++ b/globals.cginc @@ -271,6 +271,72 @@ float4 _Decal0_Metallic_Gloss_ST; #endif // _DECAL0_METALLIC_GLOSS #endif // _DECAL0 +#if defined(_DECAL1) +float4 _Decal1_Color; +texture2D _Decal1_MainTex; +float4 _Decal1_MainTex_ST; +float _Decal1_Opacity; +int _Decal1_UV_Mode; +int _Decal1_UV_Channel; +int _Decal1_Mix_Mode; +#if defined(_DECAL1_ROTATION) +float _Decal1_Rotation; +#endif // _DECAL1_ROTATION +#if defined(_DECAL1_MASK) +texture2D _Decal1_Mask; +float4 _Decal1_Mask_ST; +int _Decal1_Mask_UV_Channel; +#endif // _DECAL1_MASK +#if defined(_DECAL1_METALLIC_GLOSS) +texture2D _Decal1_Metallic_Gloss; +float4 _Decal1_Metallic_Gloss_ST; +#endif // _DECAL1_METALLIC_GLOSS +#endif // _DECAL1 + +#if defined(_DECAL2) +float4 _Decal2_Color; +texture2D _Decal2_MainTex; +float4 _Decal2_MainTex_ST; +float _Decal2_Opacity; +int _Decal2_UV_Mode; +int _Decal2_UV_Channel; +int _Decal2_Mix_Mode; +#if defined(_DECAL2_ROTATION) +float _Decal2_Rotation; +#endif // _DECAL2_ROTATION +#if defined(_DECAL2_MASK) +texture2D _Decal2_Mask; +float4 _Decal2_Mask_ST; +int _Decal2_Mask_UV_Channel; +#endif // _DECAL2_MASK +#if defined(_DECAL2_METALLIC_GLOSS) +texture2D _Decal2_Metallic_Gloss; +float4 _Decal2_Metallic_Gloss_ST; +#endif // _DECAL2_METALLIC_GLOSS +#endif // _DECAL2 + +#if defined(_DECAL3) +float4 _Decal3_Color; +texture2D _Decal3_MainTex; +float4 _Decal3_MainTex_ST; +float _Decal3_Opacity; +int _Decal3_UV_Mode; +int _Decal3_UV_Channel; +int _Decal3_Mix_Mode; +#if defined(_DECAL3_ROTATION) +float _Decal3_Rotation; +#endif // _DECAL3_ROTATION +#if defined(_DECAL3_MASK) +texture2D _Decal3_Mask; +float4 _Decal3_Mask_ST; +int _Decal3_Mask_UV_Channel; +#endif // _DECAL3_MASK +#if defined(_DECAL3_METALLIC_GLOSS) +texture2D _Decal3_Metallic_Gloss; +float4 _Decal3_Metallic_Gloss_ST; +#endif // _DECAL3_METALLIC_GLOSS +#endif // _DECAL3 + #define MATCAP_MODE_REPLACE 0 #define MATCAP_MODE_ADD 1 #define MATCAP_MODE_MULTIPLY 2 -- cgit v1.2.3