glTexEnv
glTexEnv is a function in OpenGL used to set texture environment parameters. It controls how texture coordinates and colors interact with the fragment's color. The primary mode, GL_MODULATE, multiplies the texture color with the fragment's current color. GL_DECAL replaces the fragment color with the texture color, ignoring the fragment's original color. GL_REPLACE is similar to GL_DECAL but respects per-fragment alpha. GL_BLEND blends the texture color with the fragment color using a specified factor.
The function takes three arguments: the target (usually GL_TEXTURE_ENV), the parameter name, and the parameter value.