diff --git a/light.cc b/light.cc index bdbd402..fa8dfde 100644 --- a/light.cc +++ b/light.cc @@ -1,10 +1,10 @@ #include "light.hh" -Light::Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameOffset) +Light::Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset) : Entity(position, glm::vec3(0.0f, 0.0f, 0.0f)) { this->colour = colour; this->intensity = intensity; - this->flameOffset = flameOffset; + this->flameYOffset = flameYOffset; } Light::Light() { @@ -21,6 +21,6 @@ float Light::getIntensity() { return intensity; } -float Light::getFlameOffset() { - return flameOffset; +float Light::getFlameYOffset() { + return flameYOffset; } diff --git a/light.hh b/light.hh index b84d549..2112487 100644 --- a/light.hh +++ b/light.hh @@ -6,14 +6,14 @@ class Light : public Entity { public: - Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameOffset = 0.0f); + Light(glm::vec3 position, glm::vec3 colour, float intensity, float flameYOffset = 0.0f); Light(); glm::vec3 getColour(); float getIntensity(); - float getFlameOffset(); + float getFlameYOffset(); ~Light(); private: - float flameOffset; + float flameYOffset; float intensity; glm::vec3 colour; };