From 7bfc0ecde84604abf8974ec2ffd1e9b0efb84bea Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 16 Mar 2026 15:51:20 -0700 Subject: Add more debug views --- pbr.cginc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc index f6000b8..f3c46a5 100755 --- a/pbr.cginc +++ b/pbr.cginc @@ -180,8 +180,8 @@ void apply_kintsugi(float3 world_pos, inout float3 albedo, inout float smoothnes Pbr getPbr(v2f i) { Pbr pbr = (Pbr) 0; - float3 n = normalize(i.normal); - float3 t = normalize(i.tangent.xyz); + float3 n = i.normal; + float3 t = i.tangent.xyz; t = normalize(t - n * dot(n, t)); // Gram-Schmidt to avoid skew float3 b = normalize(cross(n, t)) * i.tangent.w; pbr.tbn = float3x3(t, b, n); -- cgit v1.2.3