summaryrefslogtreecommitdiffstats
path: root/globals.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 /globals.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 'globals.cginc')
-rw-r--r--globals.cginc12
1 files changed, 12 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc
index 677cc8a..8d7caf5 100644
--- a/globals.cginc
+++ b/globals.cginc
@@ -188,26 +188,38 @@ float _PBR_Overlay3_Alpha_Multiplier;
#if defined(_DECAL0)
texture2D _Decal0_BaseColor;
float4 _Decal0_BaseColor_ST;
+texture2D _Decal0_Roughness;
+texture2D _Decal0_Metallic;
float _Decal0_Emission_Strength;
float _Decal0_Angle;
+float _Decal0_UV_Select;
#endif
#if defined(_DECAL1)
texture2D _Decal1_BaseColor;
float4 _Decal1_BaseColor_ST;
+texture2D _Decal1_Roughness;
+texture2D _Decal1_Metallic;
float _Decal1_Emission_Strength;
float _Decal1_Angle;
+float _Decal1_UV_Select;
#endif
#if defined(_DECAL2)
texture2D _Decal2_BaseColor;
float4 _Decal2_BaseColor_ST;
+texture2D _Decal2_Roughness;
+texture2D _Decal2_Metallic;
float _Decal2_Emission_Strength;
float _Decal2_Angle;
+float _Decal2_UV_Select;
#endif
#if defined(_DECAL3)
texture2D _Decal3_BaseColor;
float4 _Decal3_BaseColor_ST;
+texture2D _Decal3_Roughness;
+texture2D _Decal3_Metallic;
float _Decal3_Emission_Strength;
float _Decal3_Angle;
+float _Decal3_UV_Select;
#endif
#if defined(_EMISSION)