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: JoshKlint

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,650

    Ah, the texture uniform wasn't getting set. I...

    Ah, the texture uniform wasn't getting set. I knew it was something basic like that. Case closed.
  2. Replies
    1
    Views
    2,650

    Shadow lookups in OpenGL 4

    If I declare my shadow map texture uniform as a sampler2D value and do the comparison myself, shadow maps work perfectly:

    if (shadowcoord.z>texture(texture5,shadowcoord.xy).r) attenuation=0.0;
    If...
Results 1 to 2 of 2