diff options
Diffstat (limited to 'src/core/model.h')
-rw-r--r-- | src/core/model.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/model.h b/src/core/model.h index 1c56982..6175ec7 100644 --- a/src/core/model.h +++ b/src/core/model.h @@ -119,13 +119,20 @@ public: inline math::Color const & color() const { return light_color; }; + /// true if this is a strobe light inline bool strobe() const { return light_strobe; } + /// size if the light, default is 1.0f inline float radius() const { return light_radius; } + /// strobe time offset, in seconds inline float offset() const { return light_offset; } + /// frequency in strobes per second inline float frequency() const { return light_frequency; } + + /// fraction a strobe light will be on, default is 0.5f + inline float time() const { return light_time; } math::Vector3f light_location; math::Color light_color; @@ -133,6 +140,7 @@ public: float light_radius; float light_frequency; float light_offset; + float light_time; }; |