Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: hooyacrusty

Search: Search took 0.00 seconds.

  1. Can't initialize an array with a single element???

    Hi,

    why do I get a shader compile error when I try to put this code in my vertex shader:

    vec3 lightColor[1] = vec3[](vec3(1,1,1));

    but this works:

    vec3 lightColor[2] =...
  2. Replies
    4
    Views
    1,137

    Thanks Nowhere-01. I think maybe my problem has...

    Thanks Nowhere-01. I think maybe my problem has to do with premultiplication by alpha values possibly done in AWTTextureIO.
  3. Replies
    4
    Views
    1,137

    it makes no difference if i disable blending or...

    it makes no difference if i disable blending or not, the result is the same.

    So if I disable blending and I still have the same issue is this still a beginner question?
  4. Replies
    4
    Views
    1,137

    GLSL: why is alpha value modifying RGB??

    Hi,

    I want to use a texture as a 2D vec4 array, without alpha effects, but I'm running into this problem where the sampled R,G, and B values are modified by the alpha value:

    // to test, all...
Results 1 to 4 of 4