diff options
author | quou <quou@disroot.org> | 2025-03-10 15:03:05 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-03-10 15:03:05 +1100 |
commit | 37b929e148e5b003f68903eb9ee192d24517e683 (patch) | |
tree | 79c39617fa73ddc95f30f0ff2c86b5b81c6de0bc /lighting.hpp | |
parent | 075e530b9964d1eb000dded329d2e8d80ee277c3 (diff) |
point light
Diffstat (limited to 'lighting.hpp')
-rw-r--r-- | lighting.hpp | 9 |
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 |