From 04db6b0ccd81d988cfe3a1d09e4eb00eeea77273 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 22 Feb 2025 17:01:35 +1100 Subject: basic shadows --- model.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'model.hpp') 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); -- cgit v1.2.3-54-g00ecf