From ed5d6dfa2ed08c5a9185f3eb4ffb4deb898ed2af Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 22 Feb 2025 23:11:15 +1100 Subject: move shadows to a fullscreen buffer --- lighting.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lighting.hpp') diff --git a/lighting.hpp b/lighting.hpp index ccd08d3..0d331d7 100644 --- a/lighting.hpp +++ b/lighting.hpp @@ -19,10 +19,14 @@ struct Lighting { Staged_Buffer casters; Texture_Id shadows; Texture_Id shadow_slices[max_shadows]; + Texture_Id ss_shadows[2]; + Texture_Id ss_shadow_slices[2][max_shadows]; Sampler_Id shadow_sampler; Camera_Id cameras[max_shadows]; int light_count, caster_count; - void init(Device* dev); + void init(Device* dev, int w, int h); + void destroy_ss(Device* dev); + void recreate(Device* dev, int w, int h); void destroy(Device* dev, Renderer& r); void update( Device* dev, -- cgit v1.2.3-54-g00ecf