summaryrefslogtreecommitdiffstats
path: root/yum_pbr.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'yum_pbr.cginc')
-rw-r--r--yum_pbr.cginc4
1 files changed, 4 insertions, 0 deletions
diff --git a/yum_pbr.cginc b/yum_pbr.cginc
index dbb8d75..fb14ac1 100644
--- a/yum_pbr.cginc
+++ b/yum_pbr.cginc
@@ -31,6 +31,10 @@ YumPbr GetYumPbr(v2f i) {
UV_SCOFF(i, _MainTex_ST, /*which_channel=*/0)) * _Color;
#endif
+#if defined(_ALPHA_MULTIPLIER)
+ result.albedo.a = saturate(result.albedo.a * _Alpha_Multiplier);
+#endif
+
float3 normal_raw = UnpackScaleNormal(
tex2D(_BumpMap, UV_SCOFF(i, _BumpMap_ST, /*which_channel=*/0)),
_BumpScale);