mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-27 16:01:47 -07:00
Make rl.MatrixToFloatV transpose the matrix before transmuting it to [16]f32, so it does the same thing as the raymath version implemented in C.
This commit is contained in:
Vendored
+1
-1
@@ -668,7 +668,7 @@ MatrixLookAt :: proc "c" (eye, target, up: Vector3) -> Matrix {
|
||||
// Get float array of matrix data
|
||||
@(require_results)
|
||||
MatrixToFloatV :: proc "c" (mat: Matrix) -> [16]f32 {
|
||||
return transmute([16]f32)mat
|
||||
return transmute([16]f32)linalg.transpose(mat)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user