Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarLightSource.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarLightSource.hpp')
-rw-r--r--source/game/StarLightSource.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/game/StarLightSource.hpp b/source/game/StarLightSource.hpp
index a6948cb..673cd56 100644
--- a/source/game/StarLightSource.hpp
+++ b/source/game/StarLightSource.hpp
@@ -2,14 +2,22 @@
#include "StarVector.hpp"
#include "StarDataStream.hpp"
+#include "StarBiMap.hpp"
namespace Star {
+enum class LightType : uint8_t {
+ Spread = 0,
+ Point = 1,
+ PointAsSpread = 2 // Point with spread-like range
+};
+
+extern EnumMap<LightType> const LightTypeNames;
+
struct LightSource {
Vec2F position;
Vec3F color;
-
- bool pointLight;
+ LightType type;
// pointBeam of 0.0 means light has no beam component, as pointBeam goes up,
// the dropoff from the beamAngle becomes faster and faster.
float pointBeam;