summaryrefslogtreecommitdiffstats
path: root/features.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-06 15:10:27 -0800
committeryum <yum.food.vr@gmail.com>2026-03-06 15:10:27 -0800
commit20234b7fdc550fd3d2542391ac5bb735a7edb820 (patch)
treef9ef3c10151a1186743dac32b1c25b891a171006 /features.cginc
parent86680bb2efb0854d95de8ca1dabbd7399d806dd9 (diff)
Switch from #ifdef to uniform branches for decals
Makes code much smaller & simpler, and shader locker constant folding should make it just as efficient.
Diffstat (limited to 'features.cginc')
-rwxr-xr-xfeatures.cginc20
1 files changed, 0 insertions, 20 deletions
diff --git a/features.cginc b/features.cginc
index 621c7f0..c3c5aa1 100755
--- a/features.cginc
+++ b/features.cginc
@@ -160,38 +160,18 @@
//ifex _Decal0_Enabled==0
#pragma shader_feature_local _DECAL0
-#pragma shader_feature_local _DECAL0_ALBEDO_CLAMP
-#pragma shader_feature_local _DECAL0_METALLIC_GLOSS
-#pragma shader_feature_local _DECAL0_ROTATION
-#pragma shader_feature_local _DECAL0_MASK
-#pragma shader_feature_local _DECAL0_MASK_INVERT
//endex
//ifex _Decal1_Enabled==0
#pragma shader_feature_local _DECAL1
-#pragma shader_feature_local _DECAL1_ALBEDO_CLAMP
-#pragma shader_feature_local _DECAL1_METALLIC_GLOSS
-#pragma shader_feature_local _DECAL1_ROTATION
-#pragma shader_feature_local _DECAL1_MASK
-#pragma shader_feature_local _DECAL1_MASK_INVERT
//endex
//ifex _Decal2_Enabled==0
#pragma shader_feature_local _DECAL2
-#pragma shader_feature_local _DECAL2_ALBEDO_CLAMP
-#pragma shader_feature_local _DECAL2_METALLIC_GLOSS
-#pragma shader_feature_local _DECAL2_ROTATION
-#pragma shader_feature_local _DECAL2_MASK
-#pragma shader_feature_local _DECAL2_MASK_INVERT
//endex
//ifex _Decal3_Enabled==0
#pragma shader_feature_local _DECAL3
-#pragma shader_feature_local _DECAL3_ALBEDO_CLAMP
-#pragma shader_feature_local _DECAL3_METALLIC_GLOSS
-#pragma shader_feature_local _DECAL3_ROTATION
-#pragma shader_feature_local _DECAL3_MASK
-#pragma shader_feature_local _DECAL3_MASK_INVERT
//endex
//ifex _Matcap0_Enabled==0