+ | O3 faster bvh build and display informations

This commit is contained in:
TheRedShip
2025-01-20 10:11:54 +01:00
parent 84b0f22127
commit 0f32453088
8 changed files with 31 additions and 30 deletions

View File

@ -73,8 +73,6 @@ float BVH::evaluateSah(std::vector<Triangle> &triangles, int axis, float pos)
return (cost > 0 ? cost : 1e30f);
}
void BVH::subdivide(std::vector<Triangle> &triangles)
{
if (_primitive_count <= 4)