View Full Version : Textures and colors

Thomas Alton
01-12-2009, 11:29 AM
I have a texture containing different gradients of red and blue.

Is it possible to apply this texture to a quad but change the red colors to yellow and blue colors to black?

01-12-2009, 11:52 AM
You can do it using a fragment shader or in in your program before giving texture data to opengl.

Thomas Alton
01-12-2009, 12:40 PM
Thanks for your reply.

Do you know of any tutorials on how to do this using fragment shaders?

01-12-2009, 12:51 PM
Yes, there is a good one here (http://www.lighthouse3d.com/opengl/glsl/) to start with glsl. Enjoy! :)