From 5460dbc62fe6f404cb244410af949864cce286f5 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 25 Feb 2026 19:19:55 -0800 Subject: Add second matcap slot --- lighting.cginc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lighting.cginc') diff --git a/lighting.cginc b/lighting.cginc index f7fae86..2820c12 100755 --- a/lighting.cginc +++ b/lighting.cginc @@ -201,7 +201,6 @@ float4 getIndirectDiffuse(v2f i, Pbr pbr, inout LightData light) { #endif #if defined(_SHADOWS) - //diffuse.xyz = lerp(diffuse.xyz, _Shadow_0_Color.rgb, _Shadow_0_Threshold); float3x3 mat = float3x3( light.indirect.L01r, light.indirect.L01g, @@ -209,7 +208,7 @@ float4 getIndirectDiffuse(v2f i, Pbr pbr, inout LightData light) { ); // Multiply unit vector by L1 matrix to get vector pointing in direction of // light. - float3 dom_dir = normalize(mul(mat, float3(1,1,1))); + float3 dom_dir = normalize(mul(float3(1,1,1), mat)); float light_amount = dot(dom_dir, pbr.normal); float3 shadow_color = lerp( _Shadow_0_Color.rgb, -- cgit v1.2.3