fixed weird aura when view direction and surface normal are aligned
This commit is contained in:
parent
07ec396968
commit
2fc5938a87
@ -31,6 +31,12 @@ const glm::mat4 Light::biasMatrix(
|
|||||||
|
|
||||||
Texture* AmbientLight::brdfLUT = nullptr;
|
Texture* AmbientLight::brdfLUT = nullptr;
|
||||||
|
|
||||||
|
void AmbientLight::setBrdfLut(Texture* texture)
|
||||||
|
{
|
||||||
|
brdfLUT = texture;
|
||||||
|
brdfLUT->setWrap(GL_CLAMP_TO_EDGE);
|
||||||
|
}
|
||||||
|
|
||||||
void AmbientLight::bindAttributes(Shader *shader, Camera *camera)
|
void AmbientLight::bindAttributes(Shader *shader, Camera *camera)
|
||||||
{
|
{
|
||||||
int slot = PBRMaterial::NB_PBR_SLOTS;
|
int slot = PBRMaterial::NB_PBR_SLOTS;
|
||||||
|
@ -64,7 +64,7 @@ public:
|
|||||||
Texture* getAmbient() { return ambient; }
|
Texture* getAmbient() { return ambient; }
|
||||||
void setReflect(Texture* texture) { reflect = texture; }
|
void setReflect(Texture* texture) { reflect = texture; }
|
||||||
Texture* getReflect() { return reflect; }
|
Texture* getReflect() { return reflect; }
|
||||||
static void setBrdfLut(Texture* texture) { brdfLUT = texture; }
|
static void setBrdfLut(Texture* texture);
|
||||||
};
|
};
|
||||||
|
|
||||||
class DirectionnalLight : public Light
|
class DirectionnalLight : public Light
|
||||||
|
Loading…
x
Reference in New Issue
Block a user