Removed rotation paramter from Light constructor as it is not used.
This commit is contained in:
parent
048ab1ceaf
commit
41ae3908ab
4
light.cc
4
light.cc
@ -1,7 +1,7 @@
|
|||||||
#include "light.hh"
|
#include "light.hh"
|
||||||
|
|
||||||
Light::Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float intensity)
|
Light::Light(glm::vec3 position, glm::vec3 colour, float intensity)
|
||||||
: Entity(position, rotation) {
|
: Entity(position, glm::vec3(0.0f, 0.0f, 0.0f)) {
|
||||||
this->colour = colour;
|
this->colour = colour;
|
||||||
this->intensity = intensity;
|
this->intensity = intensity;
|
||||||
}
|
}
|
||||||
|
2
light.hh
2
light.hh
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
class Light : public Entity {
|
class Light : public Entity {
|
||||||
public:
|
public:
|
||||||
Light(glm::vec3 position, glm::vec3 rotation, glm::vec3 colour, float intensity);
|
Light(glm::vec3 position, glm::vec3 colour, float intensity);
|
||||||
glm::vec3 getColour();
|
glm::vec3 getColour();
|
||||||
float getIntensity();
|
float getIntensity();
|
||||||
~Light();
|
~Light();
|
||||||
|
Loading…
Reference in New Issue
Block a user