summaryrefslogtreecommitdiff
path: root/lighting.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lighting.hpp')
-rw-r--r--lighting.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/lighting.hpp b/lighting.hpp
index 0d331d7..7c57bab 100644
--- a/lighting.hpp
+++ b/lighting.hpp
@@ -19,14 +19,12 @@ 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 sun_range[2];
+ int point_range[2];
int light_count, caster_count;
- void init(Device* dev, int w, int h);
- void destroy_ss(Device* dev);
- void recreate(Device* dev, int w, int h);
+ void init(Device* dev);
void destroy(Device* dev, Renderer& r);
void update(
Device* dev,
@@ -54,4 +52,8 @@ struct Sun_Light : Light {
v3f dir;
};
+struct Point_Light : Light {
+ float range;
+};
+
#endif