mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Merge pull request #3742 from karl-zylinski/fix-raymath-matrix-to-float
Make rl.MatrixToFloatV do same thing in Odin as 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
|
// 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