mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | Imgui and other
This commit is contained in:
@ -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 ¤tIndex);
|
||||
GPUBvh toGPUBvh();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user