diff options
Diffstat (limited to 'model.hpp')
-rw-r--r-- | model.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |