Hi,
I have learned that using the following codes could apply environment mapping to an object:
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
But if I just want to apply this kind of effect to a plane, are there any simple methods as above?
Thanks