diff --git a/src/light.cpp b/src/light.cpp index 510e74e..77453ac 100644 --- a/src/light.cpp +++ b/src/light.cpp @@ -31,6 +31,12 @@ const glm::mat4 Light::biasMatrix( Texture* AmbientLight::brdfLUT = nullptr; +void AmbientLight::setBrdfLut(Texture* texture) +{ + brdfLUT = texture; + brdfLUT->setWrap(GL_CLAMP_TO_EDGE); +} + void AmbientLight::bindAttributes(Shader *shader, Camera *camera) { int slot = PBRMaterial::NB_PBR_SLOTS; diff --git a/src/light.h b/src/light.h index 672ce7f..0b46be6 100644 --- a/src/light.h +++ b/src/light.h @@ -64,7 +64,7 @@ public: Texture* getAmbient() { return ambient; } void setReflect(Texture* texture) { reflect = texture; } Texture* getReflect() { return reflect; } - static void setBrdfLut(Texture* texture) { brdfLUT = texture; } + static void setBrdfLut(Texture* texture); }; class DirectionnalLight : public Light