CameraSection.qml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright (C) 2022 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Section {
  8. caption: qsTr("Camera")
  9. SectionLayout {
  10. PropertyLabel {
  11. text: qsTr("Frustum Culling")
  12. tooltip: qsTr("When this property is true, objects outside the camera frustum will be culled, meaning they will not be passed to the renderer.")
  13. }
  14. SecondColumnLayout {
  15. CheckBox {
  16. text: backendValues.frustumCullingEnabled.valueToString
  17. backendValue: backendValues.frustumCullingEnabled
  18. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  19. + StudioTheme.Values.actionIndicatorWidth
  20. }
  21. ExpandingSpacer {}
  22. }
  23. PropertyLabel {
  24. text: qsTr("LOD Bias")
  25. tooltip: qsTr("This property changes the threshold for when the automatic level of detail meshes get used.")
  26. }
  27. SecondColumnLayout {
  28. SpinBox {
  29. minimumValue: 0.0
  30. maximumValue: 9999999
  31. decimals: 2
  32. backendValue: backendValues.levelOfDetailBias
  33. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  34. + StudioTheme.Values.actionIndicatorWidth
  35. }
  36. ExpandingSpacer {}
  37. }
  38. PropertyLabel {
  39. text: qsTr("Look-at Node")
  40. tooltip: qsTr("Sets the look-at node for the camera.")
  41. }
  42. SecondColumnLayout {
  43. ItemFilterComboBox {
  44. typeFilter: "QtQuick3D.Node"
  45. backendValue: backendValues.lookAtNode
  46. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  47. + StudioTheme.Values.actionIndicatorWidth
  48. }
  49. ExpandingSpacer {}
  50. }
  51. }
  52. }