Skip to content

Commit

Permalink
Fix matrix for the view frustum calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ACapo authored and Squareys committed Mar 30, 2018
1 parent 78c8665 commit 4809db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magnum/SceneGraph/OctreeDrawableGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ template<class T> OctreeDrawableGroup<T>& OctreeDrawableGroup<T>::cull(Camera<3,
this->remove((*this)[i]);
}

const Matrix4 projection = Matrix4(camera.projectionMatrix()).transposed();
const Matrix4 projection = Matrix4(camera.projectionMatrix() * camera.cameraMatrix()).transposed();
const Vector4 left{projection[3] + projection[0]};
const Vector4 right{projection[3] - projection[0]};
const Vector4 bottom{projection[3] + projection[1]};
Expand Down

0 comments on commit 4809db5

Please sign in to comment.