Added discrete height checking. Need to add discrete theta/phi. Then can do cached render textures.