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:
1 parent
603581aa53
commit
d37b5a7b67
1 file changed
+1
-1
Vendored
+1
-1
@@ -668,7 +668,7 @@ MatrixLookAt :: proc "c" (eye, target, up: Vector3) -> Matrix {
|
|||||||
// Get float array of matrix data
|
// Get float array of matrix data
|
||||||
@(require_results)
|
@(require_results)
|
||||||
MatrixToFloatV :: proc "c" (mat: Matrix) -> [16]f32 {
|
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