Define more than one light in a 3D scene?
QML and Qt Quick
1
Posts
1
Posters
1.7k
Views
1
Watching
-
Hello,
I would like to define more than one light in a 3D scene. For the moment I have this working:
@Viewport {
anchors.fill: parentlight: Light { id: light0 position: Qt.vector3d(-15,10,5) diffuseColor: "white" }@...
And I tested unsuccessfully this:
@Viewport {
anchors.fill: parentlight: [ Light { id: light0 position: Qt.vector3d(-15,10,5) diffuseColor: "white" }, Light { id: light1 position: Qt.vector3d(15,-10,5) diffuseColor: "white" }]@
Any idea how to have these two lights defined in the same scene?
Thank you,
Bill