diff options
author | quou <quou@disroot.org> | 2025-02-22 17:01:35 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-22 17:01:53 +1100 |
commit | 04db6b0ccd81d988cfe3a1d09e4eb00eeea77273 (patch) | |
tree | 5163857dca5070ecea802452c1e4e22806e4fbab /model.hpp | |
parent | 944ca7aede48f358329cc9e6cdac479648f30c17 (diff) |
basic shadows
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); |