mit neuen venv und exe-Files

This commit is contained in:
2024-11-03 17:26:54 +01:00
parent 07c05a338a
commit 0c373ff593
15115 changed files with 1998469 additions and 0 deletions

View File

@@ -0,0 +1,128 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("AreaLight")
width: parent.width
SectionLayout {
Label {
text: qsTr("Scope")
tooltip: qsTr("Sets the scope of the light. Only the node and its children are affected by this light.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Node"
Layout.fillWidth: true
backendValue: backendValues.scope
}
}
Label {
text: qsTr("Brightness")
tooltip: qsTr("Sets the strength of the light.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.brightness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Width")
tooltip: qsTr("Sets the width of the area light's rectangle.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.width
Layout.fillWidth: true
}
}
Label {
text: qsTr("Height")
tooltip: qsTr("Sets the height of the area light's rectangle.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.height
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Color")
width: parent.width
ColorEditor {
caption: qsTr("Color")
backendValue: backendValues.color
supportGradient: false
Layout.fillWidth: true
}
}
Section {
caption: qsTr("Ambient Color")
width: parent.width
ColorEditor {
caption: qsTr("Ambient Color")
backendValue: backendValues.ambientColor
supportGradient: false
Layout.fillWidth: true
}
}
ShadowSection {
width: parent.width
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
NodeSection {
width: parent.width
}
AreaLightSection {
width: parent.width
}
}

View File

@@ -0,0 +1,64 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Blending")
width: parent.width
SectionLayout {
Label {
text: qsTr("Source")
tooltip: qsTr("Source blending for a pass.")
}
ComboBox {
scope: "Blending"
model: ["Unknown", "Zero", "One", "SrcColor", "OneMinusSrcColor", "DstColor", "OneMinusDstColor", "SrcAlpha", "OneMinusSrcAlpha", "DstAlpha", "OneMinusDstAlpha", "ConstantColor", "OneMinusConstantColor", "ConstantAlpha", "OneMinusConstantAlpha", "SrcAlphaSaturate"]
backendValue: backendValues.srcBlending
Layout.fillWidth: true
}
Label {
text: qsTr("Destination")
tooltip: qsTr("Destination blending for a pass.")
}
ComboBox {
scope: "Blending"
model: ["Unknown", "Zero", "One", "SrcColor", "OneMinusSrcColor", "DstColor", "OneMinusDstColor", "SrcAlpha", "OneMinusSrcAlpha", "DstAlpha", "OneMinusDstAlpha", "ConstantColor", "OneMinusConstantColor", "ConstantAlpha", "OneMinusConstantAlpha"]
backendValue: backendValues.destBlending
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
BlendingSection {
width: parent.width
}
}

View File

@@ -0,0 +1,66 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Buffer Blit")
width: parent.width
SectionLayout {
Label {
text: qsTr("Source")
tooltip: qsTr("Source buffer for the buffer blit.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Buffer"
Layout.fillWidth: true
backendValue: backendValues.source
}
}
Label {
text: qsTr("Destination")
tooltip: qsTr("Destination buffer for the buffer blit.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Buffer"
Layout.fillWidth: true
backendValue: backendValues.destination
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
BufferBlitSection {
width: parent.width
}
}

View File

@@ -0,0 +1,66 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Buffer Input")
width: parent.width
SectionLayout {
Label {
text: qsTr("Buffer")
tooltip: qsTr("Input buffer for a pass.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Buffer"
Layout.fillWidth: true
backendValue: backendValues.buffer
}
}
Label {
text: qsTr("Parameter")
tooltip: qsTr("Buffer input buffer name in the shader.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.param
Layout.fillWidth: true
showTranslateCheckBox: false
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
BufferInputSection {
width: parent.width
}
}

View File

@@ -0,0 +1,114 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Buffer")
width: parent.width
SectionLayout {
Label {
text: qsTr("Name")
tooltip: qsTr("Buffer name.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.name
Layout.fillWidth: true
showTranslateCheckBox: false
}
}
Label {
text: qsTr("Format")
tooltip: qsTr("Format of the buffer.")
}
ComboBox {
scope: "Buffer"
model: ["Unknown", "R8", "R16", "R16F", "R32I", "R32UI", "R32F", "RG8", "RGBA8", "RGB8", "SRGB8", "SRGB8A8", "RGB565", "RGBA16F", "RG16F", "RG32F", "RGB32F", "RGBA32F", "R11G11B10", "RGB9E5", "Depth16", "Depth24", "Depth32", "Depth24Stencil8"]
backendValue: backendValues.format
Layout.fillWidth: true
}
Label {
text: qsTr("Filter")
tooltip: qsTr("Texture filter for the buffer.")
}
ComboBox {
scope: "Buffer"
model: ["Unknown", "Nearest", "Linear"]
backendValue: backendValues.textureFilterOperation
Layout.fillWidth: true
}
Label {
text: qsTr("Coordinate Operation")
tooltip: qsTr("Texture coordinate operation for the buffer.")
}
ComboBox {
scope: "Buffer"
model: ["Unknown", "ClampToEdge", "MirroredRepeat", "Repeat"]
backendValue: backendValues.textureCoordOperation
Layout.fillWidth: true
}
Label {
text: qsTr("Allocation Flags")
tooltip: qsTr("Allocation flags for the buffer.")
}
ComboBox {
scope: "Buffer"
model: ["None", "SceneLifetime"]
backendValue: backendValues.bufferFlags
Layout.fillWidth: true
}
Label {
text: qsTr("Size Multiplier")
tooltip: qsTr("Defines the size multiplier for the buffer.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 10000
minimumValue: 0
decimals: 2
realDragRange: 30
backendValue: backendValues.sizeMultiplier
Layout.fillWidth: true
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
BufferSection {
width: parent.width
}
}

View File

@@ -0,0 +1,54 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Cull Mode")
width: parent.width
SectionLayout {
Label {
text: qsTr("Mode")
tooltip: qsTr("Cull mode for a pass.")
}
ComboBox {
scope: "Material"
model: ["BackFaceCulling", "FrontFaceCulling", "NoCulling"]
backendValue: backendValues.cullMode
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
CullModeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Custom Camera")
SectionLayout {
// TODO: projection is matrix4x4 property, is that supported?
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
CustomCameraSection {
width: parent.width
}
NodeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,395 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Default Material")
width: parent.width
SectionLayout {
Label {
text: qsTr("Lighting")
tooltip: qsTr("Defines which lighting method is used when generating this material.")
}
ComboBox {
scope: "DefaultMaterial"
model: ["NoLighting", "FragmentLighting"]
backendValue: backendValues.lighting
Layout.fillWidth: true
}
Label {
text: qsTr("Blend Mode")
tooltip: qsTr("Determines how the colors of the model rendered blend with those behind it.")
}
ComboBox {
scope: "DefaultMaterial"
model: ["SourceOver", "Screen", "Multiply", "Overlay", "ColorBurn", "ColorDodge"]
backendValue: backendValues.blendMode
Layout.fillWidth: true
}
Label {
text: qsTr("Enable Vertex Colors")
tooltip: qsTr("Enables the use of vertex colors from the mesh.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.vertexColorsEnabled.valueToString
backendValue: backendValues.vertexColorsEnabled
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Diffuse")
width: parent.width
Column {
width: parent.width
ColorEditor {
caption: qsTr("Diffuse Color")
backendValue: backendValues.diffuseColor
supportGradient: false
Layout.fillWidth: true
}
SectionLayout {
Label {
text: qsTr("Diffuse Map")
tooltip: qsTr("Defines a texture to apply to the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.diffuseMap
}
}
}
}
}
Section {
caption: qsTr("Emissive")
width: parent.width
Column {
width: parent.width
ColorEditor {
caption: qsTr("Emissive Color")
backendValue: backendValues.emissiveColor
supportGradient: false
Layout.fillWidth: true
}
SectionLayout {
Label {
text: qsTr("Emissive Factor")
tooltip: qsTr("Determines the amount of self-illumination from the material (will not light other objects).")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0
decimals: 2
stepSize: 0.1
backendValue: backendValues.emissiveFactor
Layout.fillWidth: true
}
}
Label {
text: qsTr("Emissive Map")
tooltip: qsTr("Sets a texture to be used to set the emissive factor for different parts of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.emissiveMap
}
}
}
}
}
Section {
caption: qsTr("Specular")
width: parent.width
Column {
width: parent.width
ColorEditor {
caption: qsTr("Specular Tint")
backendValue: backendValues.specularTint
supportGradient: false
Layout.fillWidth: true
}
SectionLayout {
Label {
text: qsTr("Specular Amount")
tooltip: qsTr("Controls the strength of specularity (highlights and reflections).")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0
decimals: 2
stepSize: 0.1
backendValue: backendValues.specularAmount
Layout.fillWidth: true
}
}
Label {
text: qsTr("Specular Map")
tooltip: qsTr("Defines a RGB texture to modulate the amount and the color of specularity across the surface of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.specularMap
}
}
Label {
text: qsTr("Specular Model")
tooltip: qsTr("Determines which functions are used to calculate specular highlights for lights in the scene.")
}
ComboBox {
scope: "DefaultMaterial"
model: ["Default", "KGGX", "KWard"]
backendValue: backendValues.specularModel
Layout.fillWidth: true
}
Label {
text: qsTr("Reflection Map")
tooltip: qsTr("Sets a texture used for specular highlights on the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.specularReflectionMap
}
}
Label {
text: qsTr("Index of Refraction")
tooltip: qsTr("Controls what angles of reflections are affected by the Fresnel power.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 3
minimumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.indexOfRefraction
Layout.fillWidth: true
}
}
Label {
text: qsTr("Fresnel Power")
tooltip: qsTr("Decreases head-on reflections (looking directly at the surface) while maintaining reflections seen at grazing angles.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.fresnelPower
Layout.fillWidth: true
}
}
Label {
text: qsTr("Specular Roughness")
tooltip: qsTr("Controls the size of the specular highlight generated from lights and the clarity of reflections in general.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0.001
decimals: 3
backendValue: backendValues.specularRoughness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Roughness Map")
tooltip: qsTr("Defines a texture to control the specular roughness of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.roughnessMap
}
}
}
}
}
Section {
caption: qsTr("Opacity")
width: parent.width
SectionLayout {
Label {
text: qsTr("Opacity")
tooltip: qsTr("Sets the visibility of the geometry for this material.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0
decimals: 2
stepSize: 0.1
backendValue: backendValues.opacity
Layout.fillWidth: true
}
}
Label {
text: qsTr("Opacity Map")
tooltip: qsTr("Defines a texture used to control the opacity differently for different parts of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.opacityMap
}
}
}
}
Section {
caption: qsTr("Bump/Normal")
width: parent.width
SectionLayout {
Label {
text: qsTr("Bump Amount")
tooltip: qsTr("Controls the amount of simulated displacement for the bump map or normal map.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0
decimals: 2
stepSize: 0.1
backendValue: backendValues.bumpAmount
Layout.fillWidth: true
}
}
Label {
text: qsTr("Bump Map")
tooltip: qsTr("Defines a grayscale texture to simulate fine geometry displacement across the surface of the material.")
}
SecondColumnLayout {
IdComboBox {
id: bumpMapComboBox
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.bumpMap
Connections {
target: normalMapComboBox.backendValue
onExpressionChanged: {
if (normalMapComboBox.backendValue.expression !== "")
bumpMapComboBox.backendValue.resetValue()
}
}
}
}
Label {
text: qsTr("Normal Map")
tooltip: qsTr("Defines a RGB image used to simulate fine geometry displacement across the surface of the material.")
}
SecondColumnLayout {
IdComboBox {
id: normalMapComboBox
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.normalMap
Connections {
target: bumpMapComboBox.backendValue
onExpressionChanged: {
if (bumpMapComboBox.backendValue.expression !== "")
normalMapComboBox.backendValue.resetValue()
}
}
}
}
}
}
Section {
caption: qsTr("Translucency")
width: parent.width
SectionLayout {
Label {
text: qsTr("Translucency Falloff")
tooltip: qsTr("Defines the amount of falloff for the translucency based on the angle of the normals of the object to the light source.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.translucentFalloff
Layout.fillWidth: true
}
}
Label {
text: qsTr("Diffuse Light Wrap")
tooltip: qsTr("Determines the amount of light wrap for the translucency map.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0
decimals: 2
stepSize: 0.1
backendValue: backendValues.diffuseLightWrap
Layout.fillWidth: true
}
}
Label {
text: qsTr("Translucency Map")
tooltip: qsTr("Defines a grayscale texture controlling how much light can pass through the material from behind.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.translucencyMap
}
}
}
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
DefaultMaterialSection {
width: parent.width
}
MaterialSection {
width: parent.width
}
}

View File

@@ -0,0 +1,55 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Depth Input")
width: parent.width
SectionLayout {
Label {
text: qsTr("Parameter")
tooltip: qsTr("Depth input texture name in the shader.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.param
Layout.fillWidth: true
showTranslateCheckBox: false
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
DepthInputSection {
width: parent.width
}
}

View File

@@ -0,0 +1,97 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("DirectionalLight")
width: parent.width
SectionLayout {
Label {
text: qsTr("Scope")
tooltip: qsTr("Sets the scope of the light. Only the node and its children are affected by this light.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Node"
Layout.fillWidth: true
backendValue: backendValues.scope
}
}
Label {
text: qsTr("Brightness")
tooltip: qsTr("Sets the strength of the light.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.brightness
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Color")
width: parent.width
ColorEditor {
caption: qsTr("Color")
backendValue: backendValues.color
supportGradient: false
Layout.fillWidth: true
}
}
Section {
caption: qsTr("Ambient Color")
width: parent.width
ColorEditor {
caption: qsTr("Ambient Color")
backendValue: backendValues.ambientColor
supportGradient: false
Layout.fillWidth: true
}
}
ShadowSection {
width: parent.width
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
NodeSection {
width: parent.width
}
DirectionalLightSection {
width: parent.width
}
}

View File

@@ -0,0 +1,95 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Frustum Camera")
SectionLayout {
Label {
text: qsTr("Top")
tooltip: qsTr("Sets the top plane of the camera view frustum.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.top
Layout.fillWidth: true
}
}
Label {
text: qsTr("Bottom")
tooltip: qsTr("Sets the bottom plane of the camera view frustum.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.bottom
Layout.fillWidth: true
}
}
Label {
text: qsTr("Right")
tooltip: qsTr("Sets the right plane of the camera view frustum.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.right
Layout.fillWidth: true
}
}
Label {
text: qsTr("Left")
tooltip: qsTr("Sets the left plane of the camera view frustum.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.left
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,48 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
FrustumCameraSection {
width: parent.width
}
PerspectiveCameraSection {
width: parent.width
}
NodeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,123 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0 as HelperWidgets
HelperWidgets.ComboBox {
id: comboBox
property alias typeFilter: itemFilterModel.typeFilter
manualMapping: true
editable: true
model: comboBox.addDefaultItem(itemFilterModel.itemModel)
textInput.validator: RegExpValidator { regExp: /(^$|^[a-z_]\w*)/ }
HelperWidgets.ItemFilterModel {
id: itemFilterModel
modelNodeBackendProperty: modelNodeBackend
}
property string defaultItem: qsTr("None")
property string textValue: comboBox.backendValue.expression
property bool block: false
property bool dirty: true
property var editRegExp: /^[a-z_]\w*/
onTextValueChanged: {
if (comboBox.block)
return
comboBox.setCurrentText(comboBox.textValue)
}
onModelChanged: comboBox.setCurrentText(comboBox.textValue)
onCompressedActivated: comboBox.handleActivate(index)
Component.onCompleted: comboBox.setCurrentText(comboBox.textValue)
onEditTextChanged: {
comboBox.dirty = true
colorLogic.errorState = !(editRegExp.exec(comboBox.editText) !== null
|| comboBox.editText === parenthesize(defaultItem))
}
onFocusChanged: {
if (comboBox.dirty)
comboBox.handleActivate(comboBox.currentIndex)
}
function handleActivate(index)
{
if (!comboBox.__isCompleted || comboBox.backendValue === undefined)
return
var cText = (index === -1) ? comboBox.editText : comboBox.textAt(index)
comboBox.block = true
comboBox.setCurrentText(cText)
comboBox.block = false
}
function setCurrentText(text)
{
if (!comboBox.__isCompleted || comboBox.backendValue === undefined)
return
comboBox.currentIndex = comboBox.find(text)
if (text === "") {
comboBox.currentIndex = 0
comboBox.editText = parenthesize(comboBox.defaultItem)
} else {
if (comboBox.currentIndex === -1)
comboBox.editText = text
else if (comboBox.currentIndex === 0)
comboBox.editText = parenthesize(comboBox.defaultItem)
}
if (comboBox.currentIndex === 0) {
comboBox.backendValue.resetValue()
} else {
if (comboBox.backendValue.expression !== comboBox.editText)
comboBox.backendValue.expression = comboBox.editText
}
comboBox.dirty = false
}
function addDefaultItem(arr)
{
var copy = arr.slice()
copy.unshift(parenthesize(comboBox.defaultItem))
return copy
}
function parenthesize(value)
{
return "[" + value + "]"
}
}

View File

@@ -0,0 +1,96 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Material")
SectionLayout {
// Baked Lighting properties (may be internal eventually)
// ### lightmapIndirect
// ### lightmapRadiosity
// ### lightmapShadow
// ### iblProbe override
Label {
text: qsTr("Light Probe")
tooltip: qsTr("Defines a texture for overriding or setting an image based lighting texture for use with this material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.lightProbe
}
}
Label {
text: qsTr("Displacement Map")
tooltip: qsTr("Defines a grayscale image used to offset the vertices of geometry across the surface of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.displacementMap
}
}
Label {
text: qsTr("Displacement Amount")
tooltip: qsTr("Controls the offset amount for the displacement map.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.displacementAmount
Layout.fillWidth: true
}
}
Label {
text: qsTr("Culling Mode")
tooltip: qsTr("Defines whether culling is enabled and which mode is actually enabled.")
}
ComboBox {
scope: "Material"
model: ["BackFaceCulling", "FrontFaceCulling", "NoCulling"]
backendValue: backendValues.cullMode
Layout.fillWidth: true
}
}
}

View File

@@ -0,0 +1,169 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Model")
SectionLayout {
id: tessellationSection
Label {
text: qsTr("Source")
tooltip: qsTr("Defines the location of the mesh file containing the geometry of this model.")
}
SecondColumnLayout {
UrlChooser {
backendValue: backendValues.source
filter: "*.mesh"
}
}
function hasTessellationMode(mode) {
if (tessellationModeComboBox.backendValue.valueToString !== "" &&
tessellationModeComboBox.backendValue.valueToString !== mode)
return false
if (tessellationModeComboBox.backendValue.enumeration !== "" &&
tessellationModeComboBox.backendValue.enumeration !== mode)
return false
return true
}
Label {
text: qsTr("Tessellation Mode")
tooltip: qsTr("Defines what method to use to dynamically generate additional geometry for the model.")
}
SecondColumnLayout {
ComboBox {
id: tessellationModeComboBox
scope: "Model"
model: ["NoTessellation", "Linear", "Phong", "NPatch"]
backendValue: backendValues.tessellationMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("Edge Tessellation")
tooltip: qsTr("Defines the edge multiplier to the tessellation generator.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 64.0
minimumValue: 0.0
decimals: 0
backendValue: backendValues.edgeTessellation
Layout.fillWidth: true
enabled: !tessellationSection.hasTessellationMode("NoTessellation")
}
}
Label {
text: qsTr("Inner Tessellation")
tooltip: qsTr("Defines the inner multiplier to the tessellation generator.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 64.0
minimumValue: 0.0
decimals: 0
backendValue: backendValues.innerTessellation
Layout.fillWidth: true
enabled: !tessellationSection.hasTessellationMode("NoTessellation")
}
}
Label {
text: qsTr("Enable Wireframe Mode")
tooltip: qsTr("Enables the wireframe mode if tesselation is enabled.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.isWireframeMode.valueToString
backendValue: backendValues.isWireframeMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("Casts Shadows")
tooltip: qsTr("Enables the geometry of this model to be rendered to the shadow maps.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.castsShadows.valueToString
backendValue: backendValues.castsShadows
Layout.fillWidth: true
}
}
Label {
text: qsTr("Receives Shadows")
tooltip: qsTr("Enables the geometry of this model to receive shadows.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.receivesShadows.valueToString
backendValue: backendValues.receivesShadows
Layout.fillWidth: true
}
}
Label {
text: qsTr("Pickable")
tooltip: qsTr("Controls whether the model is pickable or not.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.pickable.valueToString
backendValue: backendValues.pickable
Layout.fillWidth: true
}
}
Label {
text: qsTr("Materials")
}
SecondColumnLayout {
EditableListView {
backendValue: backendValues.materials
model: backendValues.materials.expressionAsList
Layout.fillWidth: true
onAdd: function(value) { backendValues.materials.idListAdd(value) }
onRemove: function(idx) { backendValues.materials.idListRemove(idx) }
onReplace: function (idx, value) { backendValues.materials.idListReplace(idx, value) }
}
}
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
ModelSection {
width: parent.width
}
NodeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,350 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
import StudioTheme 1.0 as StudioTheme
Column {
width: parent.width
Section {
width: parent.width
caption: qsTr("Node")
SectionLayout {
Label {
text: qsTr("Opacity")
tooltip: qsTr("Controls the local opacity value of the node.")
}
// ### should be a slider
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.opacity
Layout.fillWidth: true
sliderIndicatorVisible: true
}
Label {
text: qsTr("Visibility")
tooltip: qsTr("Sets the local visibility of the node.")
}
SecondColumnLayout {
// ### should be a slider
CheckBox {
text: qsTr("Is Visible")
backendValue: backendValues.visible
Layout.fillWidth: true
}
}
}
}
Section {
id: transformSection
width: parent.width
caption: qsTr("Transform")
property int labelWidth: 10
property int labelSpinBoxSpacing: 0
property int spinBoxMinimumWidth: 120
GridLayout {
columns: 2
rows: 2
columnSpacing: 24
rowSpacing: 12
width: parent.width - 16
ColumnLayout {
Label {
width: 100
text: qsTr("Translation")
tooltip: qsTr("Sets the translation of the node.")
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("X")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisXColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.x
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Y")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisYColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.y
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Z")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisZColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.z
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
}
ColumnLayout {
Label {
width: 100
text: qsTr("Rotation")
tooltip: qsTr("Sets the rotation of the node in degrees.")
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("X")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisXColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.eulerRotation_x
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Y")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisYColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.eulerRotation_y
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Z")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisZColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.eulerRotation_z
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
}
ColumnLayout {
Label {
text: qsTr("Scale")
tooltip: qsTr("Sets the scale of the node.")
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("X")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisXColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 50
decimals: 2
stepSize: 0.1
backendValue: backendValues.scale_x
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Y")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisYColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 50
decimals: 2
stepSize: 0.1
backendValue: backendValues.scale_y
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Z")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisZColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 50
decimals: 2
stepSize: 0.1
backendValue: backendValues.scale_z
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
}
ColumnLayout {
Label {
text: qsTr("Pivot")
tooltip: qsTr("Sets the pivot of the node.")
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("X")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisXColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.pivot_x
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Y")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisYColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.pivot_y
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
RowLayout {
spacing: transformSection.labelSpinBoxSpacing
Label {
text: qsTr("Z")
width: transformSection.labelWidth
color: StudioTheme.Values.theme3DAxisZColor
}
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.pivot_z
Layout.fillWidth: true
Layout.minimumWidth: transformSection.spinBoxMinimumWidth
}
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
NodeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,37 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Object")
}

View File

@@ -0,0 +1,69 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Orthographic Camera")
SectionLayout {
Label {
text: qsTr("Clip Near")
tooltip: qsTr("Sets the near value of the camera view frustum.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.clipNear
Layout.fillWidth: true
}
}
Label {
text: qsTr("Clip Far")
tooltip: qsTr("Sets the far value of the camera view frustum.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
stepSize: 100
backendValue: backendValues.clipFar
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
OrthographicCameraSection {
width: parent.width
}
NodeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,87 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Pass")
width: parent.width
SectionLayout {
Label {
text: qsTr("Commands")
tooltip: qsTr("Render commands of the pass.")
}
SecondColumnLayout {
EditableListView {
backendValue: backendValues.commands
model: backendValues.commands.expressionAsList
Layout.fillWidth: true
typeFilter: "QtQuick3D.Command"
onAdd: function(value) { backendValues.commands.idListAdd(value) }
onRemove: function(idx) { backendValues.commands.idListRemove(idx) }
onReplace: function (idx, value) { backendValues.commands.idListReplace(idx, value) }
}
}
Label {
text: qsTr("Buffer")
tooltip: qsTr("Output buffer for the pass.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Buffer"
Layout.fillWidth: true
backendValue: backendValues.output
}
}
Label {
text: qsTr("Shaders")
tooltip: qsTr("Shaders for the pass.")
}
SecondColumnLayout {
EditableListView {
backendValue: backendValues.shaders
model: backendValues.shaders.expressionAsList
Layout.fillWidth: true
typeFilter: "QtQuick3D.Shader"
onAdd: function(value) { backendValues.shaders.idListAdd(value) }
onRemove: function(idx) { backendValues.shaders.idListRemove(idx) }
onReplace: function (idx, value) { backendValues.shaders.idListReplace(idx, value) }
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
PassSection {
width: parent.width
}
}

View File

@@ -0,0 +1,94 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Perspective Camera")
SectionLayout {
Label {
text: qsTr("Clip Near")
tooltip: qsTr("Sets the near value of the view frustum of the camera.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.clipNear
Layout.fillWidth: true
}
}
Label {
text: qsTr("Clip Far")
tooltip: qsTr("Sets the far value of the view frustum of the camera.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
stepSize: 100
backendValue: backendValues.clipFar
Layout.fillWidth: true
}
}
Label {
text: qsTr("Field of View")
tooltip: qsTr("Sets the field of view of the camera in degrees.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 180
decimals: 2
backendValue: backendValues.fieldOfView
Layout.fillWidth: true
}
}
Label {
text: qsTr("FOV Orientation")
tooltip: qsTr("Determines if the field of view property reflects the vertical or the horizontal field of view.")
}
ComboBox {
scope: "PerspectiveCamera"
model: ["Vertical", "Horizontal"]
backendValue: backendValues.fieldOfViewOrientation
Layout.fillWidth: true
}
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
PerspectiveCameraSection {
width: parent.width
}
NodeSection {
width: parent.width
}
}

View File

@@ -0,0 +1,142 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("PointLight")
width: parent.width
SectionLayout {
Label {
text: qsTr("Scope")
tooltip: qsTr("Sets the scope of the light. Only the node and its children are affected by this light.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Node"
Layout.fillWidth: true
backendValue: backendValues.scope
}
}
Label {
text: qsTr("Brightness")
tooltip: qsTr("Sets the strength of the light.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.brightness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Constant Fade")
tooltip: qsTr("Sets the constant attenuation of the light.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 10
decimals: 2
stepSize: 0.1
backendValue: backendValues.constantFade
Layout.fillWidth: true
}
}
Label {
text: qsTr("Linear Fade")
tooltip: qsTr("Sets the linear attenuation of the light.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 10
decimals: 2
stepSize: 0.1
backendValue: backendValues.linearFade
Layout.fillWidth: true
}
}
Label {
text: qsTr("Quadratic Fade")
tooltip: qsTr("Sets the quadratic attenuation of the light.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 10
decimals: 2
stepSize: 0.1
backendValue: backendValues.quadraticFade
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Color")
width: parent.width
ColorEditor {
caption: qsTr("Color")
backendValue: backendValues.color
supportGradient: false
Layout.fillWidth: true
}
}
Section {
caption: qsTr("Ambient Color")
width: parent.width
ColorEditor {
caption: qsTr("Ambient Color")
backendValue: backendValues.ambientColor
supportGradient: false
Layout.fillWidth: true
}
}
ShadowSection {
width: parent.width
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
NodeSection {
width: parent.width
}
PointLightSection {
width: parent.width
}
}

View File

@@ -0,0 +1,447 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Principled Material")
width: parent.width
SectionLayout {
Label {
text: qsTr("Alpha Mode")
tooltip: qsTr("Sets the mode for how the alpha channel of material color is used.")
}
SecondColumnLayout {
ComboBox {
scope: "PrincipledMaterial"
model: ["Opaque", "Mask", "Blend"]
backendValue: backendValues.alphaMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("Alpha Cutoff")
tooltip: qsTr("Specifies the cutoff value when using the Mask alphaMode.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.alphaCutoff
Layout.fillWidth: true
}
}
Label {
text: qsTr("Blend Mode")
tooltip: qsTr("Determines how the colors of the model rendered blend with those behind it.")
}
SecondColumnLayout {
ComboBox {
scope: "PrincipledMaterial"
model: ["SourceOver", "Screen", "Multiply", "Overlay", "ColorBurn", "ColorDodge"]
backendValue: backendValues.blendMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("Index Of Refraction")
tooltip: qsTr("Controls how fast light travels through the material.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 1
maximumValue: 3
decimals: 2
stepSize: 0.1
backendValue: backendValues.indexOfRefraction
Layout.fillWidth: true
}
}
Label {
text: qsTr("Lighting")
tooltip: qsTr("Defines which lighting method is used when generating this material.")
}
SecondColumnLayout {
ComboBox {
scope: "PrincipledMaterial"
model: ["NoLighting", "FragmentLighting"]
backendValue: backendValues.lighting
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Metalness")
width: parent.width
SectionLayout {
Label {
text: qsTr("Metalness")
tooltip: qsTr("Defines the metalness of the the material.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.metalness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Metalness Map")
tooltip: qsTr("Sets a texture to be used to set the metalness amount for the different parts of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.metalnessMap
}
}
Label {
text: qsTr("Metalness Channel")
tooltip: qsTr("Defines the texture channel used to read the metalness value from metalnessMap.")
}
SecondColumnLayout {
ComboBox {
scope: "Material"
model: ["R", "G", "B", "A"]
backendValue: backendValues.metalnessChannel
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Normal")
width: parent.width
SectionLayout {
Label {
text: qsTr("Normal Map")
tooltip: qsTr("Defines an RGB image used to simulate fine geometry displacement across the surface of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.normalMap
}
}
Label {
text: qsTr("Normal Strength")
tooltip: qsTr("Controls the amount of simulated displacement for the normalMap.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.normalStrength
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Occlusion")
width: parent.width
SectionLayout {
Label {
text: qsTr("Occlusion Amount")
tooltip: qsTr("Contains the factor used to modify the values from the occlusionMap texture.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.occlusionAmount
Layout.fillWidth: true
}
}
Label {
text: qsTr("Occlusion Map")
tooltip: qsTr("Defines a texture used to determine how much indirect light the different areas of the material should receive.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.occlusionMap
}
}
Label {
text: qsTr("Occlusion Channel")
tooltip: qsTr("Defines the texture channel used to read the occlusion value from occlusionMap.")
}
SecondColumnLayout {
ComboBox {
scope: "Material"
model: ["R", "G", "B", "A"]
backendValue: backendValues.occlusionChannel
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Opacity")
width: parent.width
SectionLayout {
Label {
text: qsTr("Opacity")
tooltip: qsTr("Drops the opacity of just this material, separate from the model.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 1
minimumValue: 0
decimals: 2
stepSize: 0.1
backendValue: backendValues.opacity
Layout.fillWidth: true
}
}
Label {
text: qsTr("Opacity Map")
tooltip: qsTr("Defines a texture used to control the opacity differently for different parts of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.opacityMap
}
}
Label {
text: qsTr("Opacity Channel")
tooltip: qsTr("Defines the texture channel used to read the opacity value from opacityMap.")
}
SecondColumnLayout {
ComboBox {
scope: "Material"
model: ["R", "G", "B", "A"]
backendValue: backendValues.opacityChannel
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Roughness")
width: parent.width
SectionLayout {
Label {
text: qsTr("Roughness")
tooltip: qsTr("Controls the size of the specular highlight generated from lights, and the clarity of reflections in general.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.roughness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Roughness Map")
tooltip: qsTr("Defines a texture to control the specular roughness of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.roughnessMap
}
}
Label {
text: qsTr("Roughness Channel")
tooltip: qsTr("Defines the texture channel used to read the roughness value from roughnessMap.")
}
SecondColumnLayout {
ComboBox {
scope: "Material"
model: ["R", "G", "B", "A"]
backendValue: backendValues.roughnessChannel
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Specular")
width: parent.width
SectionLayout {
Label {
text: qsTr("Specular Amount")
tooltip: qsTr("Controls the strength of specularity (highlights and reflections).")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.specularAmount
Layout.fillWidth: true
}
}
Label {
text: qsTr("Specular Map")
tooltip: qsTr("Defines a RGB Texture to modulate the amount and the color of specularity across the surface of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.specularMap
}
}
Label {
text: qsTr("Specular Reflection Map")
tooltip: qsTr("Sets a texture used for specular highlights on the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.specularReflectionMap
}
}
Label {
text: qsTr("Specular Tint")
tooltip: qsTr("Defines how much of the base color contributes to the specular reflections.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 1
decimals: 2
stepSize: 0.1
backendValue: backendValues.specularTint
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Base Color")
width: parent.width
Column {
width: parent.width
ColorEditor {
caption: qsTr("Base Color")
backendValue: backendValues.baseColor
supportGradient: false
Layout.fillWidth: true
}
SectionLayout {
Label {
text: qsTr("Base Color Map")
tooltip: qsTr("Defines a texture used to set the base color of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.baseColorMap
}
}
}
}
}
Section {
caption: qsTr("Emissive Color")
width: parent.width
Column {
width: parent.width
ColorEditor {
caption: qsTr("Emissive Color")
backendValue: backendValues.emissiveColor
supportGradient: false
Layout.fillWidth: true
}
SectionLayout {
Label {
text: qsTr("Emissive Map")
tooltip: qsTr("Sets a texture to be used to set the emissive factor for different parts of the material.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.emissiveMap
}
}
}
}
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
PrincipledMaterialSection {
width: parent.width
}
MaterialSection {
width: parent.width
}
}

View File

@@ -0,0 +1,65 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Render State")
width: parent.width
SectionLayout {
Label {
text: qsTr("State")
tooltip: qsTr("Render state to set for a pass.")
}
ComboBox {
scope: "RenderState"
model: ["Unknown", "Blend", "CullFace", "DepthTest", "StencilTest", "ScissorTest", "DepthWrite", "Multisample"]
backendValue: backendValues.renderState
Layout.fillWidth: true
}
Label {
text: qsTr("Enabled")
tooltip: qsTr("Render state enable state.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.enabled.valueToString
backendValue: backendValues.enabled
Layout.fillWidth: true
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
RenderStateSection {
width: parent.width
}
}

View File

@@ -0,0 +1,318 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Scene Environment")
width: parent.width
SectionLayout {
Label {
text: qsTr("Antialiasing Mode")
tooltip: qsTr("Sets the antialiasing mode applied to the scene.")
}
SecondColumnLayout {
ComboBox {
scope: "SceneEnvironment"
model: ["NoAA", "SSAA", "MSAA", "ProgressiveAA"]
backendValue: backendValues.antialiasingMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("Antialiasing Quality")
tooltip: qsTr("Sets the level of antialiasing applied to the scene.")
}
SecondColumnLayout {
ComboBox {
scope: "SceneEnvironment"
model: ["Medium", "High", "VeryHigh"]
backendValue: backendValues.antialiasingQuality
Layout.fillWidth: true
}
}
Label {
text: qsTr("Temporal AA")
tooltip: qsTr("Enables temporal antialiasing using camera jittering and frame blending.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.temporalAAEnabled.valueToString
backendValue: backendValues.temporalAAEnabled
Layout.fillWidth: true
}
}
Label {
text: qsTr("Temporal AA Strength")
tooltip: qsTr("Sets the amount of temporal antialiasing applied.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 2.0
minimumValue: 0.01
decimals: 2
stepSize: 0.1
backendValue: backendValues.temporalAAStrength
Layout.fillWidth: true
}
}
Label {
text: qsTr("Background Mode")
tooltip: qsTr("Controls if and how the background of the scene should be cleared.")
}
SecondColumnLayout {
ComboBox {
scope: "SceneEnvironment"
model: ["Transparent", "Unspecified", "Color", "SkyBox"]
backendValue: backendValues.backgroundMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("Enable Depth Test")
tooltip: qsTr("Enables depth testing. Disable to optimize render speed for layers with mostly transparent objects.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.depthTestEnabled.valueToString
backendValue: backendValues.depthTestEnabled
Layout.fillWidth: true
}
}
Label {
text: qsTr("Enable Depth Prepass")
tooltip: qsTr("Draw depth buffer as a separate pass. Disable to optimize render speed for layers with low depth complexity.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.depthPrePassEnabled.valueToString
backendValue: backendValues.depthPrePassEnabled
Layout.fillWidth: true
}
}
Label {
text: qsTr("Effect")
tooltip: qsTr("A post-processing effect applied to this scene.")
}
SecondColumnLayout {
EditableListView {
backendValue: backendValues.effects
model: backendValues.effects.expressionAsList
Layout.fillWidth: true
typeFilter: "QtQuick3D.Effect"
onAdd: function(value) { backendValues.effects.idListAdd(value) }
onRemove: function(idx) { backendValues.effects.idListRemove(idx) }
onReplace: function (idx, value) { backendValues.effects.idListReplace(idx, value) }
}
}
}
}
Section {
caption: qsTr("Clear Color")
width: parent.width
ColorEditor {
caption: qsTr("Clear Color")
backendValue: backendValues.clearColor
supportGradient: false
Layout.fillWidth: true
}
}
Section {
caption: qsTr("Ambient Occlusion")
width: parent.width
SectionLayout {
Label {
text: qsTr("AO Strength")
tooltip: qsTr("Sets the amount of ambient occlusion applied.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 100
minimumValue: 0
decimals: 0
backendValue: backendValues.aoStrength
Layout.fillWidth: true
}
}
Label {
text: qsTr("AO Distance")
tooltip: qsTr("Sets how far ambient occlusion shadows spread away from objects.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 99999
minimumValue: 0
decimals: 0
backendValue: backendValues.aoDistance
Layout.fillWidth: true
}
}
Label {
text: qsTr("AO Softness")
tooltip: qsTr("Sets how smooth the edges of the ambient occlusion shading are.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 50
minimumValue: 0
decimals: 0
backendValue: backendValues.aoSoftness
Layout.fillWidth: true
}
}
Label {
text: qsTr("AO Dither")
tooltip: qsTr("Enables scattering of the ambient occlusion shadow band edges to improve smoothness (at the risk of sometimes producing obvious patterned artifacts).")
}
SecondColumnLayout {
CheckBox {
text: backendValues.aoDither.valueToString
backendValue: backendValues.aoDither
Layout.fillWidth: true
}
}
Label {
text: qsTr("AO Sample Rate")
tooltip: qsTr("Sets the ambient occlusion quality (more shades of gray) at the expense of performance.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 4
minimumValue: 2
decimals: 0
backendValue: backendValues.aoSampleRate
Layout.fillWidth: true
}
}
Label {
text: qsTr("AO Bias")
tooltip: qsTr("Sets the cutoff distance preventing objects from exhibiting ambient occlusion at close distances.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 5000
decimals: 2
backendValue: backendValues.aoBias
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Image Based Lighting")
width: parent.width
SectionLayout {
Label {
text: qsTr("Light Probe")
tooltip: qsTr("Defines a texture for overriding or setting an image based lighting texture for use with the skybox of this scene.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.lightProbe
}
}
Label {
text: qsTr("Probe Brightness")
tooltip: qsTr("Sets the amount of light emitted by the light probe.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.probeBrightness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Fast IBL")
tooltip: qsTr("Use a faster approximation to image-based lighting.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.aoDither.valueToString
backendValue: backendValues.fastIBL
Layout.fillWidth: true
}
}
Label {
text: qsTr("Probe Horizon")
tooltip: qsTr("Upper limit for horizon darkening of the light probe.")
}
SecondColumnLayout {
SpinBox {
maximumValue: -0.001
minimumValue: -1
decimals: 3
stepSize: 0.1
backendValue: backendValues.probeHorizon
Layout.fillWidth: true
}
}
Label {
text: qsTr("Probe FOV")
tooltip: qsTr("Image source FOV for the case of using a camera-source as the IBL probe.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 180
minimumValue: 1.0
decimals: 1
backendValue: backendValues.probeFieldOfView
Layout.fillWidth: true
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
SceneEnvironmentSection {
width: parent.width
}
}

View File

@@ -0,0 +1,67 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Set Uniform Value")
width: parent.width
SectionLayout {
Label {
text: qsTr("Target")
tooltip: qsTr("The name of the uniform to change value for a pass.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.target
Layout.fillWidth: true
showTranslateCheckBox: false
}
}
Label {
text: qsTr("Value")
tooltip: qsTr("The value of the uniform.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.value
Layout.fillWidth: true
showTranslateCheckBox: false
writeAsExpression: true
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
SetUniformValueSection {
width: parent.width
}
}

View File

@@ -0,0 +1,76 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Shader Info")
width: parent.width
SectionLayout {
Label {
text: qsTr("Version")
tooltip: qsTr("Shader code version to use.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.version
Layout.fillWidth: true
showTranslateCheckBox: false
}
}
Label {
text: qsTr("Type")
tooltip: qsTr("Shader type.")
}
SecondColumnLayout {
LineEdit {
backendValue: backendValues.type
Layout.fillWidth: true
showTranslateCheckBox: false
}
}
Label {
text: qsTr("Key")
tooltip: qsTr("Shader key.")
}
ComboBox {
scope: "ShaderInfo"
model: ["Diffuse", "Specular", "Cutout", "Refraction", "Transparent", "Displace", "Transmissive", "Glossy"]
backendValue: backendValues.shaderKey
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
ShaderInfoSection {
width: parent.width
}
}

View File

@@ -0,0 +1,64 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Shader")
width: parent.width
SectionLayout {
Label {
text: qsTr("Source")
tooltip: qsTr("Shader source code.")
}
SecondColumnLayout {
UrlChooser {
backendValue: backendValues.shader
filter: "*.*"
}
}
Label {
text: qsTr("Stage")
tooltip: qsTr("Shader stage.")
}
ComboBox {
scope: "Shader"
model: ["Shared", "Vertex", "Fragment", "Geometry", "Compute"]
backendValue: backendValues.stage
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
ShaderSection {
width: parent.width
}
}

View File

@@ -0,0 +1,133 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Shadows")
width: parent.width
SectionLayout {
Label {
text: qsTr("Casts Shadow")
tooltip: qsTr("Enables shadow casting for this light.")
}
SecondColumnLayout {
CheckBox {
id: shadowCheckBox
text: backendValues.castsShadow.valueToString
backendValue: backendValues.castsShadow
Layout.fillWidth: true
}
}
// ### all the following should only be shown when shadows are enabled
Label {
text: qsTr("Shadow Factor")
tooltip: qsTr("Determines how dark the cast shadows should be.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0.0
maximumValue: 100.0
decimals: 0
backendValue: backendValues.shadowFactor
Layout.fillWidth: true
enabled: shadowCheckBox.backendValue.value === true
}
}
Label {
text: qsTr("Shadow Filter")
tooltip: qsTr("Sets how much blur is applied to the shadows.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 1.0
maximumValue: 100.0
decimals: 0
backendValue: backendValues.shadowFilter
Layout.fillWidth: true
enabled: shadowCheckBox.backendValue.value === true
}
}
Label {
text: qsTr("Shadow Map Quality")
tooltip: qsTr("Sets the quality of the shadow map created for shadow rendering.")
}
SecondColumnLayout {
ComboBox {
scope: "Light"
model: ["ShadowMapQualityLow", "ShadowMapQualityMedium", "ShadowMapQualityHigh", "ShadowMapQualityVeryHigh"]
backendValue: backendValues.shadowMapQuality
Layout.fillWidth: true
enabled: shadowCheckBox.backendValue.value === true
}
}
Label {
text: qsTr("Shadow Bias")
tooltip: qsTr("Sets a slight offset to avoid self-shadowing artifacts.")
}
SecondColumnLayout {
SpinBox {
minimumValue: -1.0
maximumValue: 1.0
decimals: 2
stepSize: 0.1
backendValue: backendValues.shadowBias
Layout.fillWidth: true
enabled: shadowCheckBox.backendValue.value === true
}
}
Label {
text: qsTr("Shadow Map Far")
tooltip: qsTr("Determines the maximum distance for the shadow map.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
stepSize: 100
backendValue: backendValues.shadowMapFar
Layout.fillWidth: true
enabled: shadowCheckBox.backendValue.value === true
}
}
}
}

View File

@@ -0,0 +1,170 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("SpotLight")
width: parent.width
SectionLayout {
Label {
text: qsTr("Scope")
tooltip: qsTr("Sets the scope of the light. Only the node and its children are affected by this light.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Node"
Layout.fillWidth: true
backendValue: backendValues.scope
}
}
Label {
text: qsTr("Brightness")
tooltip: qsTr("Sets the strength of the light.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 9999999
minimumValue: -9999999
realDragRange: 5000
decimals: 0
backendValue: backendValues.brightness
Layout.fillWidth: true
}
}
Label {
text: qsTr("Constant Fade")
tooltip: qsTr("Sets the constant attenuation of the light.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 10
decimals: 2
stepSize: 0.1
backendValue: backendValues.constantFade
Layout.fillWidth: true
}
}
Label {
text: qsTr("Linear Fade")
tooltip: qsTr("Sets the linear attenuation of the light.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 10
decimals: 2
stepSize: 0.1
backendValue: backendValues.linearFade
Layout.fillWidth: true
}
}
Label {
text: qsTr("Quadratic Fade")
tooltip: qsTr("Sets the quadratic attenuation of the light.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 10
decimals: 2
stepSize: 0.1
backendValue: backendValues.quadraticFade
Layout.fillWidth: true
}
}
Label {
text: qsTr("Cone Angle")
tooltip: qsTr("Sets the angle of the light cone.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 180
decimals: 2
backendValue: backendValues.coneAngle
Layout.fillWidth: true
}
}
Label {
text: qsTr("Inner Cone Angle")
tooltip: qsTr("Sets the angle of the inner light cone.")
}
SecondColumnLayout {
SpinBox {
minimumValue: 0
maximumValue: 180
decimals: 2
backendValue: backendValues.innerConeAngle
Layout.fillWidth: true
}
}
}
}
Section {
caption: qsTr("Color")
width: parent.width
ColorEditor {
caption: qsTr("Color")
backendValue: backendValues.color
supportGradient: false
Layout.fillWidth: true
}
}
Section {
caption: qsTr("Ambient Color")
width: parent.width
ColorEditor {
caption: qsTr("Ambient Color")
backendValue: backendValues.ambientColor
supportGradient: false
Layout.fillWidth: true
}
}
ShadowSection {
width: parent.width
}
}

View File

@@ -0,0 +1,44 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
NodeSection {
width: parent.width
}
SpotLightSection {
width: parent.width
}
}

View File

@@ -0,0 +1,66 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
Section {
caption: qsTr("Texture Input")
width: parent.width
SectionLayout {
Label {
text: qsTr("Texture")
tooltip: qsTr("Input texture.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Texture"
Layout.fillWidth: true
backendValue: backendValues.texture
}
}
Label {
text: qsTr("Enabled")
tooltip: qsTr("Texture enable state.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.enabled.valueToString
backendValue: backendValues.enabled
Layout.fillWidth: true
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
TextureInputSection {
width: parent.width
}
}

View File

@@ -0,0 +1,210 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("Image")
width: parent.width
SectionLayout {
Label {
text: qsTr("Source")
tooltip: qsTr("Holds the location of an image file containing the data used by the texture.")
}
SecondColumnLayout {
UrlChooser {
backendValue: backendValues.source
}
}
Label {
text: qsTr("Source Item")
tooltip: qsTr("Defines an item to be used as the source of the texture.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick.Item"
Layout.fillWidth: true
backendValue: backendValues.sourceItem
}
}
Label {
text: qsTr("U Scale")
tooltip: qsTr("Defines how to scale the U texture coordinate when mapping to UV coordinates of a mesh.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: 0
realDragRange: 10
decimals: 0
backendValue: backendValues.scaleU
Layout.fillWidth: true
}
}
Label {
text: qsTr("V Scale")
tooltip: qsTr("Defines how to scale the V texture coordinate when mapping to UV coordinates of a mesh.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: 0
realDragRange: 10
decimals: 0
backendValue: backendValues.scaleV
Layout.fillWidth: true
}
}
Label {
text: qsTr("Texture Mapping")
tooltip: qsTr("Defines which method of mapping to use when sampling this texture.")
}
SecondColumnLayout {
ComboBox {
scope: "Texture"
model: ["UV", "Environment", "LightProbe"]
backendValue: backendValues.mappingMode
Layout.fillWidth: true
}
}
Label {
text: qsTr("U Tiling")
tooltip: qsTr("Controls how the texture is mapped when the U scaling value is greater than 1.")
}
SecondColumnLayout {
ComboBox {
scope: "Texture"
model: ["Unknown", "ClampToEdge", "MirroredRepeat", "Repeat"]
backendValue: backendValues.tilingModeHorizontal
Layout.fillWidth: true
}
}
Label {
text: qsTr("V Tiling")
tooltip: qsTr("Controls how the texture is mapped when the V scaling value is greater than 1.")
}
SecondColumnLayout {
ComboBox {
scope: "Texture"
model: ["Unknown", "ClampToEdge", "MirroredRepeat", "Repeat"]
backendValue: backendValues.tilingModeVertical
Layout.fillWidth: true
}
}
Label {
text: qsTr("UV Rotation")
tooltip: qsTr("Rotates the texture around the pivot point.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 360
decimals: 0
backendValue: backendValues.rotationUV
Layout.fillWidth: true
}
}
Label {
text: qsTr("U Position")
tooltip: qsTr("Offsets the U coordinate mapping from left to right.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 2
decimals: 2
stepSize: 0.1
backendValue: backendValues.positionU
Layout.fillWidth: true
}
}
Label {
text: qsTr("V Position")
tooltip: qsTr("Offsets the V coordinate mapping from bottom to top.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 2
decimals: 2
stepSize: 0.1
backendValue: backendValues.positionV
Layout.fillWidth: true
}
}
Label {
text: qsTr("U Pivot")
tooltip: qsTr("Sets the pivot U position.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 2
decimals: 2
stepSize: 0.1
backendValue: backendValues.pivotU
Layout.fillWidth: true
}
}
Label {
text: qsTr("V Pivot")
tooltip: qsTr("Sets the pivot V position.")
}
SecondColumnLayout {
SpinBox {
maximumValue: 999999
minimumValue: -999999
realDragRange: 2
decimals: 2
stepSize: 0.1
backendValue: backendValues.pivotV
Layout.fillWidth: true
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
TextureSection {
width: parent.width
}
}

View File

@@ -0,0 +1,75 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Section {
caption: qsTr("View3D")
width: parent.width
SectionLayout {
Label {
text: qsTr("Camera")
tooltip: qsTr("Specifies which camera is used to render the scene.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Camera"
Layout.fillWidth: true
backendValue: backendValues.camera
}
}
Label {
text: qsTr("Environment")
tooltip: qsTr("Specifies the scene environment used to render the scene.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.SceneEnvironment"
Layout.fillWidth: true
backendValue: backendValues.environment
}
}
Label {
text: qsTr("Import Scene")
tooltip: qsTr("Defines the reference node of the scene to render to the viewport.")
}
SecondColumnLayout {
IdComboBox {
typeFilter: "QtQuick3D.Node"
Layout.fillWidth: true
backendValue: backendValues.importScene
}
}
}
}

View File

@@ -0,0 +1,40 @@
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick 3D.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import HelperWidgets 2.0
import QtQuick.Layouts 1.12
Column {
width: parent.width
View3DSection {
width: parent.width
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Some files were not shown because too many files have changed in this diff Show More