From 3305152eda7f70a03e88e5899f399ff188bd1a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= <redorav@gmail.com> Date: Fri, 21 Apr 2023 20:00:59 +0100 Subject: [PATCH] Use t4 instead of t --- include/hlsl++_quaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hlsl++_quaternion.h b/include/hlsl++_quaternion.h index 8a18cfe..f0482be 100644 --- a/include/hlsl++_quaternion.h +++ b/include/hlsl++_quaternion.h @@ -179,7 +179,7 @@ namespace hlslpp n128 t4 = _hlslpp_perm_xxxx_ps(t); // Contains t, t, t, t n128 q1_minus_q0 = _hlslpp_sub_ps(q1, q0); // q1 - q0 - n128 lerp = _hlslpp_madd_ps(t, q1_minus_q0, q0); // q0 * (1 - t) + q1 * t + n128 lerp = _hlslpp_madd_ps(t4, q1_minus_q0, q0); // q0 * (1 - t) + q1 * t n128 result = _hlslpp_mul_ps(lerp, _hlslpp_rsqrt_ps(_hlslpp_dot4_ps(lerp, lerp)));