Skip to content
Snippets Groups Projects
Commit 5a1399c7 authored by Martin Štourač's avatar Martin Štourač
Browse files

rotate initial camera

parent 1c4ef1e5
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,12 @@ void Scene::createScene()
/* ADD CAMERA */
auto camera_node = addCameraNode(60.0f, glm::vec3(0.0f, 0.0f, 5.0f), glm::vec3(0.0f, 0.0f, 0.0f));
auto rot = glm::angleAxis(glm::radians(45.0f), glm::vec3(0.0f, 1.0f, 0.0f));
camera_node->translatePosVec(glm::toMat4(rot));
camera_node->rotateRotationQuat(rot);
auto rot2 = glm::angleAxis(glm::radians(-20.0f), camera_node->getRotationAxisXLocal());
camera_node->translatePosVec(glm::toMat4(rot2));
camera_node->rotateRotationQuat(rot2);
camera_node->addChild(camera_light_node);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment