Feel free to use this in your own code with credit Useful for ray tracing spheres and cylinders It runs in a UV format if you intend to use a sphere.