2014-10-30 22:32:21 +00:00
|
|
|
#include "light.hh"
|
|
|
|
|
2015-02-24 11:56:40 +00:00
|
|
|
Light::Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameOffset)
|
2014-11-17 15:54:17 +00:00
|
|
|
: Entity(position, glm::vec3(0.0f, 0.0f, 0.0f)) {
|
2014-10-30 22:32:21 +00:00
|
|
|
this->colour = colour;
|
|
|
|
this->intensity = intensity;
|
2015-02-24 11:56:40 +00:00
|
|
|
this->flameOffset = flameOffset;
|
2014-10-30 22:32:21 +00:00
|
|
|
}
|
|
|
|
|
2014-11-17 16:50:06 +00:00
|
|
|
Light::Light() {
|
|
|
|
}
|
|
|
|
|
2014-10-30 22:32:21 +00:00
|
|
|
Light::~Light() {
|
|
|
|
}
|
2014-11-03 22:28:06 +00:00
|
|
|
|
|
|
|
glm::vec3 Light::getColour() {
|
|
|
|
return colour;
|
|
|
|
}
|
|
|
|
|
|
|
|
float Light::getIntensity() {
|
|
|
|
return intensity;
|
|
|
|
}
|
2015-02-24 11:56:40 +00:00
|
|
|
|
|
|
|
float Light::getFlameOffset() {
|
|
|
|
return flameOffset;
|
|
|
|
}
|