#include "light.h" Light::Light() { initPointLight(); } void Light::initDirectionnalLight(glm::vec3 dir, glm::vec3 lightColor, bool isShadowCaster) { initSpotLight(glm::vec3(0), dir, -1, lightColor, isShadowCaster); } void Light::initPointLight(glm::vec3 pos, glm::vec3 lightColor, bool isShadowCaster) { initSpotLight(pos, glm::vec3(0), 360, lightColor, isShadowCaster); } void Light::initSpotLight(glm::vec3 pos, glm::vec3 dir, float spotAngle, glm::vec3 lightColor, bool isShadowCaster) { position = pos; direction = dir; angle = spotAngle; color = lightColor; shadowCaster = isShadowCaster; }