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

Unshaded CustomMaterial requires POSITION calculation, contradicting docs

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.4
    • Quick: 3D
    • None

      The docs clearly state

       

      Like gl_Position. When not present, a default assignment statement is generated automatically using MODELVIEWPROJECTION_MATRIX and VERTEX. This is why an empty MAIN() is functional, and in most cases there will be no need to assign a custom value to it.

      But an empty MAIN() in an Unshaded vertex shader does not display anything.

      Setting POSITION in MAIN() shows the object as expected.
      POSITION = MODELVIEWPROJECTION_MATRIX * vec4(VERTEX, 1.0);

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

            qt.team.graphics.and.multimedia Qt Graphics Team
            mairtin.s Mairtin Steinkamp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes