use the depth buffer when rendering in gl, but it's pretty slow right now. add ...