diff options
| author | yum <yum.food.vr@gmail.com> | 2026-03-16 15:51:20 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-03-16 15:51:29 -0700 |
| commit | 7bfc0ecde84604abf8974ec2ffd1e9b0efb84bea (patch) | |
| tree | 4473487cb2d9b06b8cd675bf363f84167684e1ca /pbr.cginc | |
| parent | 50fcd18a2fb21cb19893c0c65310a525925c9177 (diff) | |
Add more debug views
Diffstat (limited to 'pbr.cginc')
| -rwxr-xr-x | pbr.cginc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
