glsl texture

ok when i was rendering without glsl i used to just use
glTexGeni (GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glTexGeni (GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);

for my water texture. i know how to do simple texture rendering with glsl but how do i do sphere map?

http://3dshaders.com/home/index.php?page…emart&Itemid=34

you can’t use those functions any longer if you go with GLSL because GLSL programs overwrite the fixed-function pipeline. you can implement it yourself in the shader though (link above).