+ | Debug view

This commit is contained in:
TheRedShip
2025-01-18 16:00:24 +01:00
parent 5d3de6158b
commit 85bab977df
9 changed files with 3010 additions and 36 deletions

View File

@ -64,6 +64,14 @@ struct GPUVolume
int enabled;
};
struct GPUDebug
{
int enabled;
int mode;
int triangle_treshold;
int box_treshold;
};
struct GPUBvh
{
alignas(16) glm::vec3 min;
@ -99,9 +107,11 @@ class Scene
const std::vector<GPUTriangle> &getTriangleData() const;
std::vector<GPUMaterial> &getMaterialData();
GPUVolume &getVolume();
std::vector<GPUBvh> &getBVH();
GPUVolume &getVolume();
GPUDebug &getDebug();
Camera *getCamera(void) const;
GPUMaterial getMaterial(int material_index);
@ -116,6 +126,7 @@ class Scene
std::set<int> _gpu_lights;
GPUVolume _gpu_volume;
GPUDebug _gpu_debug;
Camera *_camera;
};