fixed reversed brdf LUT texture
This commit is contained in:
parent
390fc21d58
commit
4974372c8f
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,4 +2,5 @@ build*
|
||||
*.user
|
||||
deploy/config.ini
|
||||
deploy/imgui.ini
|
||||
deploy/*.exe
|
||||
deploy/*.exe
|
||||
deploy/libstdc++-6.dll
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user