gl_FragDepth not available on GLES 3.0 Windows Emulator

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Shaun Shaun 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55638
    Profile photo of Daniel
    Daniel
    Member

    Hello,

    As far as the specification say, gl_FragDepth should be supported on 3.0:

    https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/gl_FragDepth.xhtml

    But I got this error:

    (Error) The shader failed OpenGL ES shader validation. Call glGetShaderInfoLog to retrieve the shader info log.
    Failed to compile pixel shader: Compile failed.
    ERROR: 0:153: 'gl_FragDepth' : undeclared identifier
    ERROR: 1 compilation errors. No code generated.

    Could be a plan to support it or am I doing something wrong?

    Thanks!

    #55642
    Profile photo of Shaun
    Shaun
    Member

    Hi Daniel,

    gl_FragDepth is supported in GLSL 300 es and up, could you post (or attach) the fragment shader that is failing.

    Thanks,
    Shaun

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.