PDA

View Full Version : GlColor3f and Gl_Decal



VasRoG
11-02-2005, 12:45 PM
I've got a little problem.
There are two objects in my scene.
One - with texture (defininG:
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_Decal ) ;)
Another - without it (defininG:
GlColor3f(..,..,..) ;)
And one liGht source.
When i renderinG it, the second object has stranGe grey color. How should i fix it?

dorbie
11-04-2005, 09:59 PM
Make sure you disable texture after drawing the textured object.

VasRoG
11-10-2005, 11:13 AM
Is that
GLDisable(GL_Texture_2D) what you mean?