This only takes modelview matrix into account, while we should take projection matrix into account as well.