summaryrefslogtreecommitdiff
path: root/lighting.hpp
diff options
context:
space:
mode:
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,