Textures and colors

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?

You can do it using a fragment shader or in in your program before giving texture data to opengl.

Thanks for your reply.

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

Yes, there is a good one here to start with glsl. Enjoy! :slight_smile: