flip image when loading backpack
This commit is contained in:
parent
b696d1e4d1
commit
2309e5ad3c
@ -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
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user