/*
This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
It is supposed to be strictly declarative and only uses a subset of QML. If you edit
this file manually, you might introduce QML code that is not supported by Qt Design Studio.
Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
*/

import QtQuick 6.4
import QtQuick.Controls 6.4
import QtQuick3D 6.4
import UntitledProject8

Rectangle {
    width: Constants.width
    height: Constants.height

    color: Constants.backgroundColor

    View3D {
        id: view3D
        anchors.fill: parent

        environment: sceneEnvironment

        SceneEnvironment {
            id: sceneEnvironment
            antialiasingMode: SceneEnvironment.MSAA
            antialiasingQuality: SceneEnvironment.High
        }

        Node {
            id: scene
            DirectionalLight {
                id: directionalLight
            }

            PerspectiveCamera {
                id: sceneCamera
                z: 350
            }

            Model {
                id: cubeModel
                eulerRotation.y: 45
                eulerRotation.x: 30
                source: "#Cube"
            }
        }
    }

    Item {
        id: __materialLibrary__

        Texture {
            id: texture3
            source: "images/4KCross.png"
        }

        Texture {
            id: texture1
            source: "images/hexagonal_concrete_paving_diff_4k.png"
        }

        Texture {
            id: texture2
            source: "images/MetalPlates005_4K_Color.png"
        }

        Texture {
            id: texture4
            source: "images/MetalPlates006_4K_Color.png"
        }

        Texture {
            id: texture5
            source: "images/Road007_4K_Color.png"
        }

        Texture {
            id: texture6
            source: "images/4KSpottyGrunge.png"
        }

        DefaultMaterial {
            id: test
            objectName: "test"
        }

        DefaultMaterial {
            id: testCopy
            objectName: "test copy"
        }

        DefaultMaterial {
            id: some
            objectName: "some"
        }

        DefaultMaterial {
            id: someCopy
            objectName: "some copy"
        }
    }

    Text {
        text: qsTr("Hello UntitledProject8")
        anchors.top: parent.top
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.topMargin: 100
        font.family: Constants.font.family
    }
}
