From 9a3459e7ba2c33376d9e705f751b1ac571509f92 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 24 Apr 2025 12:24:38 -0700 Subject: 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. --- features.cginc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'features.cginc') diff --git a/features.cginc b/features.cginc index 716c032..4e10ec8 100644 --- a/features.cginc +++ b/features.cginc @@ -119,6 +119,7 @@ #pragma shader_feature_local _DECAL0_MASK #pragma shader_feature_local _DECAL0_TILING_MODE #pragma shader_feature_local _DECAL0_REPLACE_ALPHA +#pragma shader_feature_local _DECAL0_CMYK_WARPING_PLANES //endex //ifex _Decal1_Enabled==0 #pragma shader_feature_local _DECAL1 @@ -128,6 +129,7 @@ #pragma shader_feature_local _DECAL1_MASK #pragma shader_feature_local _DECAL1_TILING_MODE #pragma shader_feature_local _DECAL1_REPLACE_ALPHA +#pragma shader_feature_local _DECAL1_CMYK_WARPING_PLANES //endex //ifex _Decal2_Enabled==0 #pragma shader_feature_local _DECAL2 @@ -137,6 +139,7 @@ #pragma shader_feature_local _DECAL2_MASK #pragma shader_feature_local _DECAL2_TILING_MODE #pragma shader_feature_local _DECAL2_REPLACE_ALPHA +#pragma shader_feature_local _DECAL2_CMYK_WARPING_PLANES //endex //ifex _Decal3_Enabled==0 #pragma shader_feature_local _DECAL3 @@ -146,6 +149,7 @@ #pragma shader_feature_local _DECAL3_MASK #pragma shader_feature_local _DECAL3_TILING_MODE #pragma shader_feature_local _DECAL3_REPLACE_ALPHA +#pragma shader_feature_local _DECAL3_CMYK_WARPING_PLANES //endex //ifex _3D_SDF_Enabled==0 -- cgit v1.2.3