Hello,
I’m not sure if anyone has posted this before, but here goes:
I want to make an animated texture by interpolating between 2 textures with GL_ARB_texture_env_combine. How should i set up the texture environment to do this?
Hello,
I’m not sure if anyone has posted this before, but here goes:
I want to make an animated texture by interpolating between 2 textures with GL_ARB_texture_env_combine. How should i set up the texture environment to do this?
Typically you’ll do that with GL_DECAL texture environment mode.
Check the tables in the fragment texture application section; they specify all the color and alpha operations for the different environment modes.
Note that if you also want to light, you have to activate a third texture stage AFTER the texture blending, and GL_MODULATE the PRIMARY_COLOR into the blended texture colored fragment. Thus you can’t do this on GeForce2 or GeForce4MX (except through multipassing).