PDA

View Full Version : How to apply reflection effect to a plane?



powervr
11-13-2004, 04:04 AM
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