summaryrefslogtreecommitdiff
path: root/model.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'model.hpp')
-rw-r--r--model.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/model.hpp b/model.hpp
index 23f3825..e7b07e6 100644
--- a/model.hpp
+++ b/model.hpp
@@ -38,7 +38,9 @@ struct Mesh {
vp_binding,
vp_binding_depth,
mat_binding,
- light_binding;
+ light_binding,
+ shadowmaps_binding,
+ casters_binding;
int env_cube_binding;
bool world_dirty;
m4f world, local;
@@ -96,6 +98,7 @@ struct Model_Resources {
Texture_Id env_cubemap;
Sampler_Id sampler;
Buffer_Id vp;
+ void (*overrider)(Pipeline_Builder&);
};
struct Model_Instance {
@@ -104,6 +107,7 @@ struct Model_Instance {
m4f transform;
Model* m;
AABB* bounds;
+ AABB bound;
void init(Device* dev, Heap* h, Model* model);
void destroy(Device* dev, Heap* h);
@@ -127,6 +131,7 @@ struct Model_Scene {
Model_Instance* instances;
int count, max;
Sampler_Id sampler;
+ AABB bound;
Model_Instance* instantiate(Device* dev, Model* model);
void uninstantiate(Device* dev, Model_Instance* model);