UPD: gitignore
This commit is contained in:
parent
e85cee21d2
commit
c224479efc
1
.gitignore
vendored
1
.gitignore
vendored
@ -84,7 +84,6 @@ fabric.properties
|
|||||||
# Object files
|
# Object files
|
||||||
*.o
|
*.o
|
||||||
*.ko
|
*.ko
|
||||||
*.obj
|
|
||||||
*.elf
|
*.elf
|
||||||
|
|
||||||
# Linker output
|
# Linker output
|
||||||
|
|||||||
BIN
assets/buildings/stone_mason/stone_mason.webp
Normal file
BIN
assets/buildings/stone_mason/stone_mason.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 KiB |
@ -38,7 +38,7 @@ std::shared_ptr<TexturedModel> OBJLoader::loadModel(const std::string &modelPath
|
|||||||
// UV-Koordinaten
|
// UV-Koordinaten
|
||||||
if (!attrib.texcoords.empty()) {
|
if (!attrib.texcoords.empty()) {
|
||||||
uvs.push_back(attrib.texcoords[2*index.texcoord_index + 0]);
|
uvs.push_back(attrib.texcoords[2*index.texcoord_index + 0]);
|
||||||
uvs.push_back(attrib.texcoords[2*index.texcoord_index + 1]);
|
uvs.push_back(1.0f - attrib.texcoords[2*index.texcoord_index + 1]);
|
||||||
} else {
|
} else {
|
||||||
uvs.push_back(0.0f);
|
uvs.push_back(0.0f);
|
||||||
uvs.push_back(0.0f);
|
uvs.push_back(0.0f);
|
||||||
|
|||||||
@ -52,9 +52,10 @@ void GameLayer::onAttach()
|
|||||||
entityManager->addComponent(entityID, std::make_shared<ModelComponent>(entity->getModel()));
|
entityManager->addComponent(entityID, std::make_shared<ModelComponent>(entity->getModel()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::string stoneMasonPath = "assets/buildings/stone_mason/";
|
||||||
|
|
||||||
auto cabinModel = AssetManager::loadModel("cabin", "assets/cabin/cabin.obj", "assets/cabin/cabin.jpg", loader);
|
auto cabinModel = AssetManager::loadModel("cabin", "assets/cabin/cabin.obj", "assets/cabin/cabin.jpg", loader);
|
||||||
auto stoneMasonModel = AssetManager::loadModel("stoneMason", "assets/prehistoric_house/stone_mason.obj", "assets/prehistoric_house/Faerberhaus.jpg", loader);
|
auto stoneMasonModel = AssetManager::loadModel("stoneMason", stoneMasonPath + "stone_mason.obj", stoneMasonPath + "stone_mason.png", loader);
|
||||||
//entities.push_back(std::make_shared<Entity>(Entity(cabinModel, glm::vec3(0,0,0), 0,0,0, 1.f)));
|
//entities.push_back(std::make_shared<Entity>(Entity(cabinModel, glm::vec3(0,0,0), 0,0,0, 1.f)));
|
||||||
|
|
||||||
/*auto transformComponent = std::make_shared<TransformComponent>(glm::vec3(0,0,0), glm::vec3(0), 1.f);
|
/*auto transformComponent = std::make_shared<TransformComponent>(glm::vec3(0,0,0), glm::vec3(0), 1.f);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user