Commit 5d288260 authored by Janis Born's avatar Janis Born

fix bug in getMonoInverseViewMatrix

parent cc17a2a6
......@@ -312,9 +312,9 @@ glm::mat4 GenericCamera::getMonoViewMatrix() const
glm::mat4 GenericCamera::getMonoInverseViewMatrix() const
{
glm::mat4 m(glm::transpose(mRotationMatrix));
m[3][0] = -mPosition.x;
m[3][1] = -mPosition.y;
m[3][2] = -mPosition.z;
m[3][0] = mPosition.x;
m[3][1] = mPosition.y;
m[3][2] = mPosition.z;
assert( isApproxEqual( glm::inverse(getViewMatrix()), m ) );
return m;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment