Results 1 to 2 of 2

Thread: Problem with gl_position in shaders

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1

    Problem with gl_position in shaders

    Hello

    I want to change the size for gl_Position
    from float to double, but i havn't found a solution.
    Why is this parameter limited to floats

  2. #2
    Member
    Join Date
    Jun 2012
    Location
    Texas
    Posts
    61

    Re: Problem with gl_position in shaders

    ALL of OpenGL ES 1.1 and 2.0 is limited to single precision float, including GLSL ES.

    In order for gl_Position to benefit from double precision, you would need a very large display to be able to perceive the improvement in precision. OpenGL ES is intended for embedded devices which usually do not have large displays. Regular OpenGL does support double precision.

    Regards, Clay

Similar Threads

  1. Shaders on OpenGL SC
    By selmanduatepe in forum OpenGL SC for Safety Critical Markets
    Replies: 1
    Last Post: 04-05-2010, 07:17 AM
  2. OGLES 1.1 - glLightfv & GL_POSITION
    By bonfo in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 10-29-2007, 01:07 AM

Posting Permissions

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