fix camera position

Change-Id: Ie3acc0a82e86fe7fbc565783ac09c2f9b6721fbf
This commit is contained in:
Markus Mohrhard
2014-05-10 22:29:06 +02:00
parent 4a833ab441
commit 9ec2a09c00

View File

@@ -154,15 +154,15 @@ void Rectangle::setLineColor(const Color& rColor)
Camera::Camera(OpenGL3DRenderer* pRenderer):
Renderable3DObject(pRenderer, 0),
maPos(10,10,-10),
maUp(0, 1, 0),
maDirection(glm::vec3(0,0,0)-maPos)
maPos(10,-50,10),
maUp(0, 0, 1),
maDirection(glm::vec3(0,1,-0.2))
{
}
void Camera::render()
{
mpRenderer->SetCameraInfo(maPos, maDirection, maUp, true);
mpRenderer->SetCameraInfo(maPos, maDirection, maUp, false);
}
void Camera::zoom(sal_uInt32 /*nId*/)