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 3 of 3

Thread: How is gl_FragCoord calculated. ?

  1. #1
    Intern Newbie
    Join Date
    Jan 2010
    Location
    San Diego, CA
    Posts
    31

    How is gl_FragCoord calculated. ?

    I need to shift the depth of a fragment a little bit (converting circles to spheres). Can anyone explain me how the original gl_FragCoord.z value is calculatged ?

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,882

    Re: How is gl_FragCoord calculated. ?

    Quote Originally Posted by Vadim
    I need to shift the depth of a fragment a little bit (converting circles to spheres). Can anyone explain me how the original gl_FragCoord.z value is calculatged ?
    I'm sure there are lots of places, but here are a few:
    * gl_FragCoord.z (OpenGL.org thread)
    * Comparing Depth in Fragment Shader (OpenGL.org thread)

  3. #3
    Member Regular Contributor
    Join Date
    Apr 2007
    Posts
    271

    Re: How is gl_FragCoord calculated. ?

    here is another OpenGL.org thread:
    http://www.opengl.org/discussion_boa...766#Post255766

Posting Permissions

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