From f478606867d42e971c5fa83803f3255e922e6a8a Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 23 Feb 2025 02:24:39 -0800 Subject: add ltcgi, alpha multiplier --- yum_pbr.cginc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yum_pbr.cginc') 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); -- cgit v1.2.3