mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Update mat44_impl.inl
should use original matrix translation not the dst matrix
This commit is contained in:
parent
caeaedde52
commit
585279ae82
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ namespace math_backend::mat44
|
||||||
// ---- Translation ----
|
// ---- Translation ----
|
||||||
|
|
||||||
// Load original translation
|
// Load original translation
|
||||||
f32x4 T = v_set(dst[3], dst[7], dst[11], 0.0f);
|
f32x4 T = v_set(m[3], m[7], m[11], 0.0f);
|
||||||
|
|
||||||
// Compute -(Tx*ma.r0 + Ty*ma.r1 + Tz*ma.r2)
|
// Compute -(Tx*ma.r0 + Ty*ma.r1 + Tz*ma.r2)
|
||||||
f32x4 result = v_mul(ma.r0, v_swizzle_singular_mask(T, 0));
|
f32x4 result = v_mul(ma.r0, v_swizzle_singular_mask(T, 0));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue