flip image when loading backpack

This commit is contained in:
Artur Tamborski 2021-02-16 21:01:07 +01:00
parent b696d1e4d1
commit 2309e5ad3c

View File

@ -92,7 +92,9 @@ int main(int argc, char** argv)
Model kniedeModel("../resources/objects/kniede/kniede.obj"); Model kniedeModel("../resources/objects/kniede/kniede.obj");
Shader backpackShader("9.2.geometry_shader.vert", "9.2.geometry_shader.frag"); Shader backpackShader("9.2.geometry_shader.vert", "9.2.geometry_shader.frag");
stbi_set_flip_vertically_on_load(true);
Model backpackModel("../resources/objects/backpack/backpack.obj"); Model backpackModel("../resources/objects/backpack/backpack.obj");
stbi_set_flip_vertically_on_load(false);
// set up vertex data (and buffer(s)) and configure vertex attributes // set up vertex data (and buffer(s)) and configure vertex attributes
// ------------------------------------------------------------------ // ------------------------------------------------------------------