Advertisement

darker textures

Started by December 07, 2002 03:42 PM
0 comments, last by mrrolf810p 22 years, 2 months ago
I'm noticing a problem of some sort when I multitexture. If I multitexture a triangle with a texture and a solid white texture, it appears darker than if I just use the single texture. Here is what I'm doing... //for the multitexture glColor3f(1.0f, 1.0f, 1.0f); glDisable(GL_DEPTH_TEST); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glAlphaFunc(GL_GREATER, 0.01f); glEnable(GL_ALPHA_TEST); glActiveTextureARB(GL_TEXTURE1_ARB); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture[0]); glActiveTextureARB(GL_TEXTURE0_ARB); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture[1]); glBegin(GL_QUADS); glMultiTexCoord2fARB(GL_TEXTURE1_ARB, u1,v1); glMultiTexCoord2fARB(GL_TEXTURE0_ARB, u2,v2); glVertex3f( x,y,z); //for the single texture glActiveTextureARB(GL_TEXTURE1_ARB); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture[1]); glColor3f(1.0f, 1.0f, 1.0f); glBegin(GL_TRIANGLES); glMultiTexCoord2fARB(GL_TEXTURE1_ARB, u1, v1); glVertex3f(x, y, z); Anyone know why the multitexture is darker than the single texture? I would think if I blended solid white with something, it would be the same as the something. [edited by - mrrolf810p on December 9, 2002 6:05:06 PM]
*bump*

This topic is closed to new replies.

Advertisement