diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-26 14:21:05 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-26 14:21:05 -0800 |
| commit | 75439d0d6437a10b00b240aba75e9f12de20150b (patch) | |
| tree | af30dceabad1b486f6411c8e89e3656887e55fff /lighting.cginc | |
| parent | 5460dbc62fe6f404cb244410af949864cce286f5 (diff) | |
Add emissions, remove impostor code
Diffstat (limited to 'lighting.cginc')
| -rwxr-xr-x | lighting.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lighting.cginc b/lighting.cginc index 2820c12..f5957b8 100755 --- a/lighting.cginc +++ b/lighting.cginc @@ -208,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(float3(1,1,1), mat)); + float3 dom_dir = normalize(mul(mat, float3(1,1,1))); float light_amount = dot(dom_dir, pbr.normal); float3 shadow_color = lerp( _Shadow_0_Color.rgb, |
