summaryrefslogtreecommitdiff
path: root/lighting.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lighting.hpp')
-rw-r--r--lighting.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lighting.hpp b/lighting.hpp
index ccd08d3..38e95ae 100644
--- a/lighting.hpp
+++ b/lighting.hpp
@@ -41,6 +41,11 @@ struct Lighting {
};
struct Light {
+ enum class Type {
+ sun,
+ point
+ };
+
v3f colour;
float brightness;
bool caster;
@@ -50,4 +55,8 @@ struct Sun_Light : Light {
v3f dir;
};
+struct Point_Light : Light {
+ float range;
+};
+
#endif