diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-25 19:19:55 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-25 19:19:55 -0800 |
| commit | 5460dbc62fe6f404cb244410af949864cce286f5 (patch) | |
| tree | 9060baaf132d5b12714e9fc7fc91015050af8624 /lighting.cginc | |
| parent | 69dded4f94ab2f7e99b4959793a9eaf1f19aef07 (diff) | |
Add second matcap slot
Diffstat (limited to 'lighting.cginc')
| -rwxr-xr-x | lighting.cginc | 3 |
1 files changed, 1 insertions, 2 deletions
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, |
