ray_sphere_intersect [function]

ray_sphere_intersect( vec3 ray_pos, vec3 ray_dir, vec3 sphere_pos, real radius )

tests for an intersection between ray and sphere, returning the distance