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

Multiple Lights don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • 5.7.0
    • Qt3D TP2
    • Qt3D

      Something like this should work, but doesn't:

      Viewport {
              anchors.fill: parent
       
              light: [ Light {
                          id: light0
                          position: Qt.vector3d(-15,10,5)
                          diffuseColor: "white"
       
                      },
                        Light {
                          id: light1
                          position: Qt.vector3d(15,-10,5)
                          diffuseColor: "white"
                      }
      }
      

      Note this is partially dependant on the positional light bug QTBUG-22414 and is also related to issues with structs on devices that cause QTBUG-19388

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

            debhal Julian de Bhal (closed Nokia identity) (Inactive)
            debhal Julian de Bhal (closed Nokia identity) (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes