mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 01:00:46 +00:00
fix ortho
This commit is contained in:
@@ -57,6 +57,7 @@ glm_ortho(float left,
|
|||||||
dest[3][0] =-(right + left) / (right - left);
|
dest[3][0] =-(right + left) / (right - left);
|
||||||
dest[3][1] =-(top + bottom) / (top - bottom);
|
dest[3][1] =-(top + bottom) / (top - bottom);
|
||||||
dest[3][2] =-(far + near) / (far - near);
|
dest[3][2] =-(far + near) / (far - near);
|
||||||
|
dest[3][3] = 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
|
Reference in New Issue
Block a user