View Full Version : Textures and colors
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.
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! :)
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.