Fixed bug with near+far plane not working properly.