fixed reversed brdf LUT texture
This commit is contained in:
parent
390fc21d58
commit
4974372c8f
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ build*
|
|||||||
deploy/config.ini
|
deploy/config.ini
|
||||||
deploy/imgui.ini
|
deploy/imgui.ini
|
||||||
deploy/*.exe
|
deploy/*.exe
|
||||||
|
deploy/libstdc++-6.dll
|
@ -320,8 +320,8 @@ int main(){
|
|||||||
engine.getWindow()->setVerticalSyncEnabled(config->vsync);
|
engine.getWindow()->setVerticalSyncEnabled(config->vsync);
|
||||||
|
|
||||||
// opengl context is created, we can initialize the global textures used by the rendering pipeline
|
// 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);
|
Image* img = Loader::loadImage("ibl_brdf_lut.png", 24, true);
|
||||||
AmbientLight::setBrdfLut(new Texture(img, false));
|
AmbientLight::setBrdfLut(new Texture(img));
|
||||||
delete img;
|
delete img;
|
||||||
Image * imgs[6];
|
Image * imgs[6];
|
||||||
imgs[0] = Loader::loadImage("skybox/posx.jpg", 24, false); // right
|
imgs[0] = Loader::loadImage("skybox/posx.jpg", 24, false); // right
|
||||||
|
Loading…
x
Reference in New Issue
Block a user