Kuesa ToneMapping QML Example
import QtQuick 2.12
import QtQuick.Scene3D 2.12
import QtQuick.Controls.Material 2.12
Item {
id: root
Item {
id: baseUI
anchors.fill: parent
Scene3D {
id: scene3d
anchors.fill: parent
focus: true
multisample: true
aspects: ["render", "input", "logic", "animation"]
MainScene {
id: sceneEntity
screenWidth: scene3d.width
screenHeight: scene3d.height
exposure: menu.exposure
rotating: menu.toggleRotation
lightRotating: menu.toggleLightRotation
toneMappingAlgorithmName: menu.toneMappingAlgorithmName
}
}
}
MainMenu {
id: menu
anchors.fill: parent
}
Image {
id: kdabLogoBottomRight
width: parent.width/13
mipmap: true
smooth: true
antialiasing: true
source: "kdab_logo_white.png"
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.bottomMargin: width/4
anchors.rightMargin: width/4
fillMode: Image.PreserveAspectFit
MouseArea {
anchors.fill: parent
onPressAndHold: menu.idleAnimationRunning = true
}
}
Image {
id: qtLogo
property bool kuesaLogo: true
anchors.verticalCenter: kdabLogoBottomRight.verticalCenter
anchors.right: kdabLogoBottomRight.left
anchors.rightMargin: kdabLogoBottomRight.anchors.rightMargin/1.3
width: parent.width/15* (kuesaLogo ? 2.3 : 1.8)
mipmap: true
smooth: true
antialiasing: true
source: kuesaLogo ? "Kuesa-logo-black.png" : "Qt-logo.png"
fillMode: Image.PreserveAspectFit
MouseArea {
anchors.fill: parent
onPressAndHold: qtLogo.kuesaLogo = !qtLogo.kuesaLogo
}
}
}