From a5e5087ebdb0e9fd08395fe683f19ca4e0d4dd44 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Fri, 14 Nov 2014 21:38:26 +0100 Subject: [PATCH] Changed default camera angle. Slowed camera movement. --- level.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level.cc b/level.cc index 9f03ea4..09740bb 100644 --- a/level.cc +++ b/level.cc @@ -13,7 +13,7 @@ Level::~Level() { void Level::load(ACGL::OpenGL::SharedShaderProgram shader) { // currently hard coded should later read this stuff out of a file - this->camera = Camera(glm::vec2(-0.8f, 0.0f), 3.0f); + this->camera = Camera(glm::vec2(0.8f, 0.0f), 3.0f); // load the geometry of the stanford bunny and build a VAO: Model model = Model("Bunny.obj", 0.25f); // load a texture: @@ -57,7 +57,7 @@ void Level::render() { void Level::update(float runTime, glm::vec2 mouseDelta) { // rotate bunny //cameraCenter->setRotation(glm::vec3(0.0f, 1.0472f * runTime, 0.0f)); - camera.updateRotation(mouseDelta/50.0f); + camera.updateRotation(mouseDelta/100.0f); } glm::vec3 Level::getAmbientLight() {