fixed reversed brdf LUT texture

This commit is contained in:
Anselme 2017-08-26 12:34:25 +02:00
parent 390fc21d58
commit 4974372c8f
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ build*
*.user
deploy/config.ini
deploy/imgui.ini
deploy/*.exe
deploy/*.exe
deploy/libstdc++-6.dll

View File

@ -320,8 +320,8 @@ int main(){
engine.getWindow()->setVerticalSyncEnabled(config->vsync);
// opengl context is created, we can initialize the global textures used by the rendering pipeline
Image* img = Loader::loadImage("ibl_brdf_lut.png", 24, false);
AmbientLight::setBrdfLut(new Texture(img, false));
Image* img = Loader::loadImage("ibl_brdf_lut.png", 24, true);
AmbientLight::setBrdfLut(new Texture(img));
delete img;
Image * imgs[6];
imgs[0] = Loader::loadImage("skybox/posx.jpg", 24, false); // right