rantrod
02-25-2001, 06:24 PM
To get the cheap enviroment mapping effect, I can do:
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glEnable(GL_TEXTURE_GEN_S);
-same of T
-draw polys
Now how are these S and T values calculated?
Anyone know the algorithm?
Where to find info on it?
Is there a way to extract those automatically generated values?
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glEnable(GL_TEXTURE_GEN_S);
-same of T
-draw polys
Now how are these S and T values calculated?
Anyone know the algorithm?
Where to find info on it?
Is there a way to extract those automatically generated values?