diff options
| author | yum <yum.food.vr@gmail.com> | 2025-04-24 12:24:38 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-04-24 12:25:01 -0700 |
| commit | 9a3459e7ba2c33376d9e705f751b1ac571509f92 (patch) | |
| tree | c63c00adbfc79e434beb9ff78149863529d3f49c /globals.cginc | |
| parent | 7aae547b83c94ff3ecf62524809ecb21d6061d33 (diff) | |
add cmyk warping planes gimmick to decals
renders the decal 4 times one planes, and applies domain warping to each
plane. Requires a 4-channel (RGBA) noise texture.
Diffstat (limited to 'globals.cginc')
| -rw-r--r-- | globals.cginc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/globals.cginc b/globals.cginc index 955cc2a..bfe71cb 100644 --- a/globals.cginc +++ b/globals.cginc @@ -268,7 +268,12 @@ float _Decal##n##_SDF_Px_Range; \ \
float _Decal##n##_Mask_Enabled; \
texture2D _Decal##n##_Mask; \
-float4 _Decal##n##_Mask_ST;
+float4 _Decal##n##_Mask_ST; \
+\
+texture2D _Decal##n##_CMYK_Warping_Planes_Noise; \
+float _Decal##n##_CMYK_Warping_Planes_Strength; \
+float _Decal##n##_CMYK_Warping_Planes_Scale; \
+float _Decal##n##_CMYK_Warping_Planes_Speed;
#if defined(_DECAL0)
DECLARE_DECAL_VARIABLES(0)
|
