frustum check refactor

This commit is contained in:
h4570
2022-08-18 09:51:13 +02:00
parent b9cde6346f
commit 1ba2cb55b7
12 changed files with 146 additions and 47 deletions
+2 -5
View File
@@ -27,11 +27,8 @@ BBox::BBox(Vec4* t_vertices, u32* faces, u32 count)
BBox::BBox(const BBox& t_bbox) : CoreBBox(t_bbox) { setData(); }
BBox::BBox(const BBox& t_bbox, const M4x4& t_matrix) {
for (u32 i = 0; i < 8; i++) {
vertices[i] = t_matrix * t_bbox.vertices[i];
}
BBox::BBox(const BBox& t_bbox, const M4x4& t_matrix)
: CoreBBox(t_bbox, t_matrix) {
setData();
}