Implement infinite perspective projection matrix creation functions

This commit is contained in:
Ali Emre Gülcü committed 2026-02-10 12:30:11 +03:00
1 parent 0356534c0c
commit d6c6b4c542
7 files changed
+167 -1

No files matched your search

+6
View File
@@ -62,6 +62,12 @@ glmc_perspective(float fovy, float aspect, float nearZ, float farZ, mat4 dest) {
glm_perspective(fovy, aspect, nearZ, farZ, dest);
}
CGLM_EXPORT
void
glmc_perspective_infinite(float fovy, float aspect, float nearZ, mat4 dest) {
glm_perspective_infinite(fovy, aspect, nearZ, dest);
}
CGLM_EXPORT
void
glmc_persp_move_far(mat4 proj, float deltaFar) {