View3DSection.qml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright (C) 2021 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("View3D")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Camera")
  13. tooltip: qsTr("Sets which camera is used to render the scene.")
  14. }
  15. SecondColumnLayout {
  16. ItemFilterComboBox {
  17. typeFilter: "QtQuick3D.Camera"
  18. backendValue: backendValues.camera
  19. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("Environment")
  26. tooltip: qsTr("Sets the scene environment used to render the scene.")
  27. }
  28. SecondColumnLayout {
  29. ItemFilterComboBox {
  30. typeFilter: "QtQuick3D.SceneEnvironment"
  31. backendValue: backendValues.environment
  32. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  33. + StudioTheme.Values.actionIndicatorWidth
  34. }
  35. ExpandingSpacer {}
  36. }
  37. PropertyLabel {
  38. text: qsTr("Import Scene")
  39. tooltip: qsTr("Sets the reference node of the scene to render to the viewport.")
  40. }
  41. SecondColumnLayout {
  42. ItemFilterComboBox {
  43. typeFilter: "QtQuick3D.Node"
  44. backendValue: backendValues.importScene
  45. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  46. + StudioTheme.Values.actionIndicatorWidth
  47. }
  48. ExpandingSpacer {}
  49. }
  50. PropertyLabel {
  51. text: qsTr("Render Format")
  52. tooltip: qsTr("Sets the format of the backing texture.")
  53. }
  54. SecondColumnLayout {
  55. ComboBox {
  56. scope: "ShaderEffectSource"
  57. model: ["RGBA8", "RGBA16F", "RGBA32F"]
  58. backendValue: backendValues.renderFormat
  59. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  60. + StudioTheme.Values.actionIndicatorWidth
  61. }
  62. ExpandingSpacer {}
  63. }
  64. }
  65. }