+ | Dragon and bvh

This commit is contained in:
TheRedShip
2025-01-18 12:30:35 +01:00
parent bb673d4af1
commit 5d3de6158b
20 changed files with 430842 additions and 25476 deletions

View File

@ -15,6 +15,7 @@
# include "RT.hpp"
struct GPUTriangle;
struct GPUObject;
struct GPUBvh;
@ -30,13 +31,13 @@ struct AABB
class BVH
{
public:
BVH(std::vector<GPUObject> &primitives, int first_primitive, int primitive_count);
BVH(std::vector<GPUTriangle> &primitives, int first_primitive, int primitive_count);
void showAABB(Scene *scene);
void updateBounds(std::vector <GPUObject> &primitives);
void subdivide(std::vector<GPUObject> &primitives);
void updateBounds(std::vector <GPUTriangle> &primitives);
void subdivide(std::vector<GPUTriangle> &primitives);
int size();