Texture Environment

The texture environment affects how texture data is applied to objects as they are drawn.

Modulate mode causes the color from the texture to be combined with incoming color, either from glColor or from lighting.

Decal & Replace modes cause just the texture color to be used - any other color information is ignored. Their main difference is in the use of alpha.

Blend mode uses the texture as a control in blending a color (the GL_TEXTURE_ENV_COLOR) with the incoming color from glColor or lighting.

glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);


next