View Full Version : Textures and colors
01-12-2009, 12:29 PM
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, 12:52 PM
You can do it using a fragment shader or in in your program before giving texture data to opengl.
01-12-2009, 01:40 PM
Thanks for your reply.
Do you know of any tutorials on how to do this using fragment shaders?
01-12-2009, 01:51 PM
Yes, there is a good one here (http://www.lighthouse3d.com/opengl/glsl/) to start with glsl. Enjoy! :)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.