View Full Version : changing textures colors
04-11-2001, 05:50 AM
Is is possible to change the color of the texture other than its own RGB color...
04-11-2001, 11:39 AM
Yes...You will need to use GL_MODULATE when you create your texture as opposed to GL_DECAL, or GL_REPLACE. The texture will then blend with the Material color.
04-11-2001, 03:00 PM
glEnable(GL_COLOR_MATERIAL); should do the trick. Then use the standard glColor* functions.
04-11-2001, 10:34 PM
I fail to see what you mean by changing the color of the texture without affecting the RGB value...
Do you mean changing the overall color of a textured polygon without changing the pixels of the texture image applied on it?
04-12-2001, 03:18 PM
He wants to know how to dynamicly change the RGB intensity without directly changing the images RGB values.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.