summaryrefslogtreecommitdiffstats
path: root/feature_macros.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-08-10 01:08:46 -0700
committeryum <yum.food.vr@gmail.com>2024-08-10 01:08:46 -0700
commit1aa73f3471b12d5fed9feb76a25c40ccf3969ce8 (patch)
treee11918f10da37d6f8623f68f83062e0098a1902a /feature_macros.cginc
parent2f48ee027587845df67214607f9cefc0e620d653 (diff)
Add metallic/roughness to decals
Also add ability to limit cubemap override to metallic regions of material. Also rename `uv` to `uv0` where appropriate. This is to begin supporting multiple UV maps.
Diffstat (limited to 'feature_macros.cginc')
-rw-r--r--feature_macros.cginc8
1 files changed, 8 insertions, 0 deletions
diff --git a/feature_macros.cginc b/feature_macros.cginc
index 07b0a3c..cb7296c 100644
--- a/feature_macros.cginc
+++ b/feature_macros.cginc
@@ -82,9 +82,17 @@
#pragma shader_feature_local _ _PBR_OVERLAY3_MIX_MIN
#pragma shader_feature_local _ _PBR_OVERLAY3_MIX_MAX
#pragma shader_feature_local _ _DECAL0
+#pragma shader_feature_local _ _DECAL0_ROUGHNESS
+#pragma shader_feature_local _ _DECAL0_METALLIC
#pragma shader_feature_local _ _DECAL1
+#pragma shader_feature_local _ _DECAL1_ROUGHNESS
+#pragma shader_feature_local _ _DECAL1_METALLIC
#pragma shader_feature_local _ _DECAL2
+#pragma shader_feature_local _ _DECAL2_ROUGHNESS
+#pragma shader_feature_local _ _DECAL2_METALLIC
#pragma shader_feature_local _ _DECAL3
+#pragma shader_feature_local _ _DECAL3_ROUGHNESS
+#pragma shader_feature_local _ _DECAL3_METALLIC
#pragma shader_feature_local _ _LTCGI
#pragma shader_feature_local _ _TESSELLATION
#pragma shader_feature_local _ _MATCAP0_DISTORTION0