From ab9ed1ccadbd2c1b971bfbfb5ee651aa03a4a63e Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 22 Feb 2025 18:16:05 +1100 Subject: shader globals --- renderer.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'renderer.hpp') diff --git a/renderer.hpp b/renderer.hpp index ae638e0..c49c804 100644 --- a/renderer.hpp +++ b/renderer.hpp @@ -36,7 +36,9 @@ struct Renderer { static constexpr int max_cameras = 16; Hash_Map cameras; Drawlist drawlists[drawlist_count]; + Staged_Buffer globals; int camera_count; + int frame; Sampler_Id clamped_linear; Texture_Id env_cubemap; @@ -60,6 +62,8 @@ struct Renderer { const Camera& get_camera(Camera_Id cam) const; void destroy_camera(Camera_Id cam); void setcam(int did, Camera_Id cam); + + void update_globals(const Lighting* l, Device* d, Context& ctx); }; #endif -- cgit v1.2.3-54-g00ecf