Spherical ray caster