mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
box: cull frustum with aabb helper
This commit is contained in:
@@ -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 />
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user