View Full Version : changing textures colors
04-11-2001, 06:50 AM
Is is possible to change the color of the texture other than its own RGB color...
04-11-2001, 12:39 PM
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, 04:00 PM
glEnable(GL_COLOR_MATERIAL); should do the trick. Then use the standard glColor* functions.
04-11-2001, 11: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, 04: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.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.