/* (non-Javadoc)
* @see ca.eandb.jmist.framework.RayShader#shadeRay(ca.eandb.jmist.math.Ray3, ca.eandb.jmist.framework.color.WavelengthPacket)
*/
public Color shadeRay(Ray3 ray, WavelengthPacket lambda) {
SphericalCoordinates sc = SphericalCoordinates.fromCartesian(ray.direction(), basis);
double theta = -sc.azimuthal();
double r = 0.5 * (1.0 - (Math.PI - sc.polar()) / Math.PI);
Point2 uv = new Point2(
0.5 + r * Math.cos(theta),
0.5 + r * Math.sin(theta));
return texture.evaluate(uv, lambda);