Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80810

Skybox es2 shaders issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.5, 5.10, 5.11, 5.12, 5.14.0, 5.14
    • Qt3D
    • None
    • Intel i7-8565U, internal graphics, Windows 10

    Description

      src/extras/shaders/es2/skybox.vert:

      gl_Position = vec4(projectionMatrix * mat4(mat3(viewMatrix)) * modelMatrix * vec4(vertexPosition, 1.0)).xyww;
      

      induces QOpenGLShader::compile(Vertex): ERROR: 3:13: constructing matrix from matrix (reserved in GLSL 1.10).

      GLSL 1.10 spec section 5.3.2 says:
      "It is an error to construct matrices from other matrices. This is reserved for future use."

      I tested only with Qt 5.9.5, but as I see in source code it is still relevant to all other versions.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            lukegluke Oleg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes