refactor: mesh load method

This commit is contained in:
2025-10-13 19:59:29 +02:00
parent d084ce8799
commit cf725c4c69
3 changed files with 138 additions and 127 deletions

View File

@@ -142,9 +142,9 @@ void Engine::setup()
world_ = std::make_unique<World>();
Logger::info("World created");
// Create camera at position (0, 1, 3) with -20 degrees X rotation
// Create camera
camera_ = std::make_shared<Camera>();
camera_->set_position(glm::vec3(0.0f, 1.0f, 3.0f));
camera_->set_position(glm::vec3(0.0f, 1.0f, 10.0f));
camera_->set_rotation(glm::vec3(glm::radians(-20.0f), 0.0f, 0.0f));
camera_->set_projection(
glm::perspective(glm::radians(45.0f),