Results 1 to 2 of 2

Thread: FragDepth?

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1

    FragDepth?

    Hi,
    If I am not wrong, there is no working gl_FragDepth in WebGL now. GLSL spec has it.
    Is it just temporary?
    What if I would like to count depth per-pixel? Is there any other way?

  2. #2
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: FragDepth?

    It's not present in OpenGL ES 2.0 - so WebGL doesn't have it.

    http://old.siggraph.org/publications/20 ... .10.11.pdf

    ...says:
    The output variables gl_ClipVertex and gl_FragDepth are removed.
    -- Steve

Posting Permissions

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