Texture Environment

glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, mode)

mode can be one of GL_MODULATE, GL_REPLACE, GL_DECAL, GL_BLEND


If Ct is the texture color, and Cf is the "fragment" color:

  For GL_MODULATE, Color = Ct * Cf

  For GL_REPLACE, Color = Ct