I need to have texture coordination generated for each vertex of given object, so that vector of texture coordinates is equal to the vector of vertex coordinates themselves, only normalized (ie. texture coordinates are calculated through projecting vertex to sphere with unit radius). Any suggestion on how best to accomplish this: is any of glTexGen() variations usable here, or the only alternative is to calculate texture coordinates manually, from corresponding vertex coordinates?
Thanks.