mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Update model chapter, and add new backpack model to repo (w/ attribution mention). Also use new model on deferred source code.
This commit is contained in:
@@ -72,6 +72,9 @@ int main()
|
||||
return -1;
|
||||
}
|
||||
|
||||
// tell stb_image.h to flip loaded texture's on the y-axis (before loading model).
|
||||
stbi_set_flip_vertically_on_load(true);
|
||||
|
||||
// configure global opengl state
|
||||
// -----------------------------
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
@@ -84,7 +87,7 @@ int main()
|
||||
|
||||
// load models
|
||||
// -----------
|
||||
Model nanosuit(FileSystem::getPath("resources/objects/nanosuit/nanosuit.obj"));
|
||||
Model nanosuit(FileSystem::getPath("resources/objects/backpack/backpack.obj"));
|
||||
std::vector<glm::vec3> objectPositions;
|
||||
objectPositions.push_back(glm::vec3(-3.0, -3.0, -3.0));
|
||||
objectPositions.push_back(glm::vec3( 0.0, -3.0, -3.0));
|
||||
|
||||
Reference in New Issue
Block a user