Results 1 to 4 of 4

Thread: Textures and colors

  1. #1
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    15

    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?

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: Textures and colors

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

  3. #3
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    15

    Re: Textures and colors

    Thanks for your reply.

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

  4. #4
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: Textures and colors

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

Similar Threads

  1. Replies: 2
    Last Post: 06-15-2015, 03:26 AM
  2. textures and colors
    By m3xican in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-13-2008, 07:12 AM
  3. combining textures and colors
    By cragwolf in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-07-2003, 05:27 PM
  4. Textures and Colors
    By AleksX in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 08-01-2002, 09:18 AM
  5. changing textures colors
    By Ganesh Kumar in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 04-12-2001, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean