From 0f9f4748d7c89036df0d032a4240582de24ba75a Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Thu, 18 Jan 2018 20:08:45 +0300 Subject: [PATCH] box: cull frustum with aabb helper --- README.md | 3 ++- include/cglm/box.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f92b2c9..15c8f96 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,8 @@ I realized that floating point errors may occur is some operaitons especially de - euler angles / yaw-pitch-roll to matrix - extract euler angles - inline or pre-compiled function call -- extract view frustum planes +- frustum (extract view frustum planes, corners...) +- bounding box (AABB in Frustum (culling), crop, merge...)
diff --git a/include/cglm/box.h b/include/cglm/box.h index 5f36bc2..d7184c5 100644 --- a/include/cglm/box.h +++ b/include/cglm/box.h @@ -136,7 +136,7 @@ glm_aabb_crop_until(vec3 box[2], */ CGLM_INLINE bool -glm_aabb_frustum(vec3 *box, vec4 planes[6]) { +glm_aabb_frustum(vec3 box[2], vec4 planes[6]) { float *p, dp; int i;