summaryrefslogtreecommitdiff
path: root/model.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-12 00:14:16 +1100
committerquou <quou@disroot.org>2025-01-12 00:14:16 +1100
commitdb7e94765c972ef940bf431e541dda4d893efc40 (patch)
tree1d374bdc42cb4d90c3121cbf878d324936f271ad /model.hpp
parent306c6318a32a9af351daaa60d2cc082e45e30dd4 (diff)
calculate model bounds at compile timeHEADmaster
Diffstat (limited to 'model.hpp')
-rw-r--r--model.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.hpp b/model.hpp
index f21c35e..204b73c 100644
--- a/model.hpp
+++ b/model.hpp
@@ -30,6 +30,7 @@ struct Mesh {
int mvp_binding_depth;
bool world_dirty;
m4f world, local;
+ AABB bound;
Shader_Id shader, depth_shader;
Material* material;
const m4f& get_world(Model& m);