Navigation Menu

Skip to content

Commit

Permalink
Added a new multitexturing environment for a simple modulation of two…
Browse files Browse the repository at this point in the history
… textures.
  • Loading branch information
skyjake committed May 22, 2007
1 parent 2c323a3 commit 377e1f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doomsday/plugins/opengl/portable/src/common.c
Expand Up @@ -402,6 +402,15 @@ int DG_SetInteger(int name, int value)
activeTexture(GL_TEXTURE0);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
}
else if(value == 12)
{
// Normal texture modulation on both stages. TU 1 modulates with
// primary color, TU 2 with TU 1.
activeTexture(GL_TEXTURE1);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
activeTexture(GL_TEXTURE0);
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
}
else if(value == 2 || value == 3)
{
// Texture modulation and interpolation.
Expand Down

0 comments on commit 377e1f1

Please sign in to comment.