From d7f497068d829200178930b8ec67dfb660051823 Mon Sep 17 00:00:00 2001 From: Schell Carl Scivally Date: Wed, 6 Dec 2023 21:02:38 +1300 Subject: [PATCH] fixed typo causing scene tangent errors --- crates/renderling/src/scene/gltf_support.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/renderling/src/scene/gltf_support.rs b/crates/renderling/src/scene/gltf_support.rs index 63939261..0c072f3a 100644 --- a/crates/renderling/src/scene/gltf_support.rs +++ b/crates/renderling/src/scene/gltf_support.rs @@ -758,7 +758,7 @@ impl GltfLoader { b.position.xyz(), b.uv.xy(), c.position.xyz(), - c.position.xy(), + c.uv.xy(), ); debug_assert!(!tangent.w.is_nan(), "tangent is NaN"); a.tangent = tangent;