summaryrefslogtreecommitdiff
path: root/lighting.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-02-22 23:11:15 +1100
committerquou <quou@disroot.org>2025-02-22 23:25:45 +1100
commited5d6dfa2ed08c5a9185f3eb4ffb4deb898ed2af (patch)
tree29a6dc82b3ccd528c80978dbc5bd6ef8c925f231 /lighting.hpp
parentab9ed1ccadbd2c1b971bfbfb5ee651aa03a4a63e (diff)
move shadows to a fullscreen buffer
Diffstat (limited to 'lighting.hpp')
-rw-r--r--lighting.hpp6
1 files changed, 5 insertions, 1 deletions
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,