Update matrix_4x4_translate
This commit is contained in:
parent
5398fa5f39
commit
c8e8070c02
|
@ -192,7 +192,7 @@ void matrix_4x4_scale(math_matrix_4x4 *out, float x, float y,
|
|||
void matrix_4x4_translate(math_matrix_4x4 *out, float x,
|
||||
float y, float z)
|
||||
{
|
||||
MAT_ELEM_4X4(*out, 0, 0) = 0.0f;
|
||||
MAT_ELEM_4X4(*out, 0, 0) = 1.0f;
|
||||
MAT_ELEM_4X4(*out, 0, 1) = 0.0f;
|
||||
MAT_ELEM_4X4(*out, 0, 2) = 0.0f;
|
||||
MAT_ELEM_4X4(*out, 0, 3) = x;
|
||||
|
|
Loading…
Reference in New Issue