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

Unable to disable back face culling in QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.0
    • 5.6.0
    • Qt3D
    • c8405e12903e621f0ba516a614d101fa8ed56f6d

    Description

      There is no way to disable the default back face culling in QML.

      One way to solve this could be by adding CullFace.None enum. If "CullFace

      { mode: CullFace.None }

      " is added to the RenderPass.renderStates list it could override any already set CullFace objects.

      This is preferable to the alternative solution of allowing an empty RenderPass.renderStates list to disable face culling. Currently, setting renderStates to an empty list does nothing, which I believe is fine. In the case of a RenderPass being inherited from another, it would be unfortunate that the user would have to replicate the contents of this list, except for the CullFace object, to achieve the wanted behavior.

      Attachments

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

        Activity

          People

            lemire_p Paul Lemire
            dragly Svenn-Arne Dragly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes