box: cull frustum with aabb helper

This commit is contained in:
Recep Aslantas
2018-01-18 20:08:45 +03:00
parent a832d58d9f
commit 0f9f4748d7
2 changed files with 3 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ I realized that floating point errors may occur is some operaitons especially de
- euler angles / yaw-pitch-roll to matrix - euler angles / yaw-pitch-roll to matrix
- extract euler angles - extract euler angles
- inline or pre-compiled function call - inline or pre-compiled function call
- extract view frustum planes - frustum (extract view frustum planes, corners...)
- bounding box (AABB in Frustum (culling), crop, merge...)
<hr /> <hr />

View File

@@ -136,7 +136,7 @@ glm_aabb_crop_until(vec3 box[2],
*/ */
CGLM_INLINE CGLM_INLINE
bool bool
glm_aabb_frustum(vec3 *box, vec4 planes[6]) { glm_aabb_frustum(vec3 box[2], vec4 planes[6]) {
float *p, dp; float *p, dp;
int i; int i;