mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Merge branch 'master' of https://github.com/jonassorgenfrei/LearnOpenGL
This commit is contained in:
@@ -98,7 +98,7 @@ int main()
|
||||
|
||||
// load entities
|
||||
// -----------
|
||||
Model model = Model(FileSystem::getPath("resources/objects/planet/planet.obj"));
|
||||
Model model = Model(FileSystem::getPath("resources/objects/planet/planet.obj"));
|
||||
Entity ourEntity(model);
|
||||
ourEntity.transform.setLocalPosition({ 10, 0, 0 });
|
||||
const float scale = 0.75;
|
||||
@@ -109,7 +109,6 @@ int main()
|
||||
|
||||
for (unsigned int i = 0; i < 10; ++i)
|
||||
{
|
||||
Model model = Model(FileSystem::getPath("resources/objects/planet/planet.obj"));
|
||||
lastEntity->addChild(model);
|
||||
lastEntity = lastEntity->children.back().get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user