refactor: mesh load method
This commit is contained in:
		| @@ -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), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user