Added axis aligned bounding box checks, fixed shader errors