DRW: New function DRW_culling_min_max_test

For testing intersection with frustrum planes without having to transform all bound box vertices into global space.
This commit is contained in:
2019-08-15 10:17:41 -03:00
parent 78b56fa7d9
commit 261a02fc59
2 changed files with 22 additions and 0 deletions

View File

@@ -597,6 +597,7 @@ bool DRW_view_is_persp_get(const DRWView *view);
bool DRW_culling_sphere_test(const DRWView *view, const BoundSphere *bsphere);
bool DRW_culling_box_test(const DRWView *view, const BoundBox *bbox);
bool DRW_culling_plane_test(const DRWView *view, const float plane[4]);
bool DRW_culling_min_max_test(const DRWView *view, float obmat[4][4], float min[3], float max[3]);
void DRW_culling_frustum_corners_get(const DRWView *view, BoundBox *corners);
void DRW_culling_frustum_planes_get(const DRWView *view, float planes[6][4]);