~ | Imgui and other

This commit is contained in:
TheRedShip
2025-01-31 12:19:27 +01:00
parent 0b5de9f683
commit 49bc86433f
9 changed files with 156 additions and 118 deletions

View File

@ -40,8 +40,11 @@ struct BVHStats
int min_triangles;
int max_triangles;
float average_triangles;
int min_depth;
int max_depth;
float average_depth;
int total_leaves; // Helper to calculate average depth
};
class BVH
{
public:
@ -55,7 +58,7 @@ class BVH
int getSize();
int getLeaves();
BVHStats analyzeBVHLeaves(BVH* root);
BVHStats analyzeBVHLeaves(BVH* root, int current_depth);
void flatten(std::vector<GPUBvh> &bvhs, int &currentIndex);
GPUBvh toGPUBvh();

View File

@ -113,7 +113,7 @@ class Scene
void addMaterial(Material *material);
void addTexture(std::string path);
void loadTextures();
bool loadTextures();
void updateLightAndObjects(int mat_id);
std::set<int> getGPULights();