Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Changing default OpenGL color interpolation

Hybrid View

  1. #1
    Newbie Newbie
    Join Date
    Jul 2012
    Posts
    1

    Changing default OpenGL color interpolation

    Is there a way to redefine how OpenGL interpolates color between two vertices? For example, if I draw a line between blue and red vertices, I am looking for the line to interpolate through the color spectrum. (interpolate may not be the correct word at this point). My current solution is to load a texture of the color spectrum and map to it. Is there another way to achieve this effect without using textures, writing my own shaders, or introducing more vertices to interpolate through? (Basically just using a clever combination of OpenGL functionality)

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,793
    No, you can't.

    Basically just using a clever combination of OpenGL functionality
    Those things you cite are a clever use of OpenGL functionality.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •