diff options
| author | yum <yum.food.vr@gmail.com> | 2024-12-27 14:18:41 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-12-27 14:18:41 -0800 |
| commit | 2743c9640efcf79843b9c985e0b48dd4403fb804 (patch) | |
| tree | 5ffba6f52d57e13fc002f6ea347eb4af5c0ec2f4 /tooner_lighting.cginc | |
| parent | 4f78fa07364d921d3dca811442cdf05e6a384370 (diff) | |
More LTCGI cleanup
Debugging why shadowmap LTCGI emissions don't show up. This patch makes
the shader match the appearance of the LTCGI surface shaders much more
closely.
Diffstat (limited to 'tooner_lighting.cginc')
| -rw-r--r-- | tooner_lighting.cginc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc index e5bcd13..7224152 100644 --- a/tooner_lighting.cginc +++ b/tooner_lighting.cginc @@ -583,9 +583,8 @@ float get_glitter(float2 uv, float3 worldPos, float3 centerCamPos, } #endif // _GLITTER -float3 CreateBinormal (float3 normal, float3 tangent, float binormalSign) { - return cross(normal, tangent.xyz) * - (binormalSign * unity_WorldTransformParams.w); +float3 CreateBinormal(float3 normal, float3 tangent, float binormalSign) { + return cross(normal, tangent) * (binormalSign * unity_WorldTransformParams.w); } float2 matcap_distortion0(float2 matcap_uv) { |
