summaryrefslogtreecommitdiffstats
path: root/globals.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-01 19:51:36 -0800
committeryum <yum.food.vr@gmail.com>2026-03-01 19:51:36 -0800
commit92c9035bb513886f99fde8c08694d9d6baa6f305 (patch)
tree5d9786f185ec76af08834432c1fee077cd4f526f /globals.cginc
parent4463becae15767e900255b92eab7f8b781e4e020 (diff)
Add decal slot
Diffstat (limited to 'globals.cginc')
-rwxr-xr-xglobals.cginc22
1 files changed, 22 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc
index 2f4dc1e..df9552e 100755
--- a/globals.cginc
+++ b/globals.cginc
@@ -6,6 +6,8 @@
SamplerState point_repeat_s;
SamplerState linear_repeat_s;
SamplerState aniso4_trilinear_repeat_s;
+SamplerState aniso4_trilinear_mirror_s;
+SamplerState aniso4_trilinear_clamp_s;
SamplerState bilinear_repeat_s;
SamplerState linear_clamp_s;
SamplerState bilinear_clamp_s;
@@ -239,6 +241,26 @@ float _Parallax_Heightmap_Bias;
float _Parallax_Heightmap_Ray_Marching_Steps;
#endif // _PARALLAX_HEIGHTMAP_RAY_MARCHING
+#define DECAL_UV_MODE_REPEAT 0
+#define DECAL_UV_MODE_MIRROR 1
+#define DECAL_UV_MODE_CLAMP 2
+
+#define DECAL_MIX_MODE_ALPHA_BLEND 0
+#define DECAL_MIX_MODE_MULTIPLY 1
+
+#if defined(_DECAL0)
+float4 _Decal0_Color;
+texture2D _Decal0_MainTex;
+float4 _Decal0_MainTex_ST;
+float _Decal0_Opacity;
+int _Decal0_UV_Mode;
+int _Decal0_UV_Channel;
+int _Decal0_Mix_Mode;
+#if defined(_DECAL0_ROTATION)
+float _Decal0_Rotation;
+#endif // _DECAL0_ROTATION
+#endif // _DECAL0
+
#define MATCAP_MODE_REPLACE 0
#define MATCAP_MODE_ADD 1
#define MATCAP_MODE_MULTIPLY 2