2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2020-03-09 16:08:13 +02:00
|
|
|
|
2021-06-28 14:04:43 +03:00
|
|
|
import QtQuick 6.0
|
|
|
|
|
import QtQuick3D 6.0
|
2020-10-08 10:50:15 +03:00
|
|
|
import LightUtils 1.0
|
2020-03-09 16:08:13 +02:00
|
|
|
|
|
|
|
|
Model {
|
|
|
|
|
id: lightModel
|
|
|
|
|
|
|
|
|
|
property alias geometryName: lightGeometry.name // Name must be unique for each geometry
|
2020-05-04 17:42:22 +03:00
|
|
|
property alias geometryType: lightGeometry.lightType
|
2020-05-11 13:01:32 +03:00
|
|
|
property Material material
|
2021-09-06 14:24:23 +03:00
|
|
|
readonly property bool _edit3dLocked: true // Make this non-pickable
|
2020-03-09 16:08:13 +02:00
|
|
|
|
|
|
|
|
function updateGeometry()
|
|
|
|
|
{
|
|
|
|
|
lightGeometry.update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scale: Qt.vector3d(50, 50, 50)
|
|
|
|
|
|
|
|
|
|
geometry: lightGeometry
|
2020-05-11 13:01:32 +03:00
|
|
|
materials: [ material ]
|
2020-03-09 16:08:13 +02:00
|
|
|
|
|
|
|
|
LightGeometry {
|
|
|
|
|
id: lightGeometry
|
|
|
|
|
}
|
|
|
|
|
}
|