coordinates
// Compute coordinates, texture coordinates:
for (i = 0; i < nlat; i++) {
y = 2 * ( i / (nlat-1) ) - 1;
r = Math.sqrt( 1 - y*y );
for (j = 0; j < nl; j++) {
phi = 2 * Math.PI * j / nl;
x = -Math.sin(phi)*r;
z = -Math.cos(phi)*r;
c[i*nl+j] = new SFVec3f(x,y,z);
tc[i*nl+j] = new SFVec2f( j/nl, i/(nlat-1) );
}
}