MaterialSection.qml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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("Material")
  9. SectionLayout {
  10. // Baked Lighting properties (may be internal eventually)
  11. // ### lightmapIndirect
  12. // ### lightmapRadiosity
  13. // ### lightmapShadow
  14. // ### iblProbe override
  15. PropertyLabel {
  16. text: qsTr("Light Probe")
  17. tooltip: qsTr("Sets a texture to use as image based lighting.\nThis overrides the scene's light probe.")
  18. }
  19. SecondColumnLayout {
  20. ItemFilterComboBox {
  21. typeFilter: "QtQuick3D.Texture"
  22. backendValue: backendValues.lightProbe
  23. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  24. + StudioTheme.Values.actionIndicatorWidth
  25. }
  26. ExpandingSpacer {}
  27. }
  28. PropertyLabel {
  29. text: qsTr("Culling Mode")
  30. tooltip: qsTr("Sets which primitives to discard, if any.")
  31. }
  32. SecondColumnLayout {
  33. ComboBox {
  34. scope: "Material"
  35. model: ["BackFaceCulling", "FrontFaceCulling", "NoCulling"]
  36. backendValue: backendValues.cullMode
  37. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  38. + StudioTheme.Values.actionIndicatorWidth
  39. }
  40. ExpandingSpacer {}
  41. }
  42. PropertyLabel {
  43. text: qsTr("Depth Draw Mode")
  44. tooltip: qsTr("Sets if and when depth rendering takes place.")
  45. }
  46. SecondColumnLayout {
  47. ComboBox {
  48. scope: "Material"
  49. model: ["OpaqueOnlyDepthDraw", "AlwaysDepthDraw", "NeverDepthDraw", "OpaquePrePassDepthDraw"]
  50. backendValue: backendValues.depthDrawMode
  51. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  52. + StudioTheme.Values.actionIndicatorWidth
  53. }
  54. ExpandingSpacer {}
  55. }
  56. }
  57. }