03/14/2002
15-462 Graphics I
26
Other Texturing Issues
•glTexEnvi(GL_TEX_ENV, GL_TEX_ENV_MODE, GL_MODULATE)
–Will balance between shade color and texture color
•glTexEnvi(GL_TEX_ENV, GL_TEX_ENV_MODE, GL_DECAL)
–Will replace shade color with texture color
–
•glHint(GL_PERSPECTIVE_CORRECTION, GL_NICEST)
–OpenGL does linear interpolation of textures
•Works fine for orthographic projections
–Allows for OpenGL to correct textures for perspective projection
•There is a performance hit
•
•Texture objects
–Maintain texture in memory so that it will not have to be loaded constantly