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

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,494

    No. It might be possible with multi-texturing,...

    No.

    It might be possible with multi-texturing, but I'm not sure, even if it works it isn't exactly "easy", it might not be particularly accurate, and it requires at least 1.3 (so not strictly...
  2. Replies
    7
    Views
    1,494

    I'm not entirely sure. With multi-texturing...

    I'm not entirely sure. With multi-texturing (glTexEnv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE)), you can subtract textures, and you can scale the result by a factor of 4. Results are clamped...
  3. Replies
    7
    Views
    1,494

    Depth textures only have a single channel; the...

    Depth textures only have a single channel; the vectors returned from texelFetch() will be [depth,0,0,1]. Use e.g.:


    if (depth1.r > depth2.r)
Results 1 to 3 of 3