View Full Version : current color
09-05-2001, 08:37 AM
after a use texture to an object, the current color is changed to some kind color of the texture(I don't know how come). can I change the current color back?
the state of the drawing color stays the same as long as you do not change it, if you want to make a green cube:
set the color you want before drawing.
09-05-2001, 12:17 PM
A little correction: glColor4f may mean not only diffuse or ambient color, it depends on last state of color-material, if GL_COLOR_MATERIAL is enabled, surely.
If you wanna change whole material with _all_ properties use glMaterial functions.
cause gl retains the last state something was set to u need to make sure the colour is the apporopiate one for what u need (most likely white in your case huangzl)
colour is now white
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.