diff options
| author | yum <yum.food.vr@gmail.com> | 2026-03-06 14:56:19 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-03-06 14:56:19 -0800 |
| commit | 86680bb2efb0854d95de8ca1dabbd7399d806dd9 (patch) | |
| tree | ad677e3dd7d7eb3f8dfcd5f04f27e5c9864709f9 /globals.cginc | |
| parent | 0c9cbd834b3169001d38ff47fd2b91ac5b8454ee (diff) | |
Add three more decal slots
Diffstat (limited to 'globals.cginc')
| -rwxr-xr-x | globals.cginc | 66 |
1 files changed, 66 insertions, 0 deletions
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 |
