PrincipledMaterialSection.qml 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480
  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. Column {
  8. width: parent.width
  9. Section {
  10. caption: qsTr("Principled Material")
  11. width: parent.width
  12. SectionLayout {
  13. id: baseSectionLayout
  14. property bool isAlphaMaskMode: alphaModeComboBox.currentIndex === 1
  15. PropertyLabel {
  16. text: qsTr("Alpha Mode")
  17. tooltip: qsTr("Sets the mode for how the alpha channel of base color is used.")
  18. }
  19. SecondColumnLayout {
  20. ComboBox {
  21. id: alphaModeComboBox
  22. scope: "PrincipledMaterial"
  23. model: ["Default", "Mask", "Blend", "Opaque"]
  24. backendValue: backendValues.alphaMode
  25. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  26. + StudioTheme.Values.actionIndicatorWidth
  27. }
  28. ExpandingSpacer {}
  29. }
  30. PropertyLabel {
  31. visible: baseSectionLayout.isAlphaMaskMode
  32. text: qsTr("Alpha Cutoff")
  33. tooltip: qsTr("Sets the cutoff value when using the Mask alphaMode.")
  34. }
  35. SecondColumnLayout {
  36. visible: baseSectionLayout.isAlphaMaskMode
  37. SpinBox {
  38. minimumValue: 0
  39. maximumValue: 1
  40. decimals: 2
  41. stepSize: 0.1
  42. sliderIndicatorVisible: true
  43. backendValue: backendValues.alphaCutoff
  44. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  45. + StudioTheme.Values.actionIndicatorWidth
  46. }
  47. ExpandingSpacer {}
  48. }
  49. PropertyLabel {
  50. text: qsTr("Blend Mode")
  51. tooltip: qsTr("Sets how the colors of the model rendered blend with those behind it.")
  52. }
  53. SecondColumnLayout {
  54. ComboBox {
  55. scope: "PrincipledMaterial"
  56. model: ["SourceOver", "Screen", "Multiply"]
  57. backendValue: backendValues.blendMode
  58. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  59. + StudioTheme.Values.actionIndicatorWidth
  60. }
  61. ExpandingSpacer {}
  62. }
  63. PropertyLabel {
  64. text: qsTr("Lighting")
  65. tooltip: qsTr("Sets which lighting method is used when generating this material.")
  66. }
  67. SecondColumnLayout {
  68. ComboBox {
  69. scope: "PrincipledMaterial"
  70. model: ["NoLighting", "FragmentLighting"]
  71. backendValue: backendValues.lighting
  72. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  73. + StudioTheme.Values.actionIndicatorWidth
  74. }
  75. ExpandingSpacer {}
  76. }
  77. }
  78. }
  79. Section {
  80. caption: qsTr("Base Color")
  81. width: parent.width
  82. SectionLayout {
  83. PropertyLabel {
  84. text: qsTr("Color")
  85. }
  86. ColorEditor {
  87. backendValue: backendValues.baseColor
  88. supportGradient: false
  89. }
  90. PropertyLabel {
  91. text: qsTr("Map")
  92. tooltip: qsTr("Sets a texture used to set the base color of the material.")
  93. }
  94. SecondColumnLayout {
  95. ItemFilterComboBox {
  96. typeFilter: "QtQuick3D.Texture"
  97. backendValue: backendValues.baseColorMap
  98. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  99. + StudioTheme.Values.actionIndicatorWidth
  100. }
  101. ExpandingSpacer {}
  102. }
  103. PropertyLabel {
  104. text: qsTr("Use Single Channel")
  105. tooltip: qsTr("Use only a single channel from baseColorMap.")
  106. }
  107. SecondColumnLayout {
  108. CheckBox {
  109. id: baseColorSingleChannelCheckBox
  110. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  111. backendValue: backendValues.baseColorSingleChannelEnabled
  112. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  113. + StudioTheme.Values.actionIndicatorWidth
  114. }
  115. ExpandingSpacer {}
  116. }
  117. PropertyLabel {
  118. text: qsTr("Channel")
  119. tooltip: qsTr("Sets the texture channel used to read the base color value from baseColorMap.")
  120. }
  121. SecondColumnLayout {
  122. ComboBox {
  123. enabled: baseColorSingleChannelCheckBox.checked
  124. scope: "Material"
  125. model: ["R", "G", "B", "A"]
  126. backendValue: backendValues.baseColorChannel
  127. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  128. + StudioTheme.Values.actionIndicatorWidth
  129. }
  130. ExpandingSpacer {}
  131. }
  132. }
  133. }
  134. Section {
  135. caption: qsTr("Metalness")
  136. width: parent.width
  137. SectionLayout {
  138. PropertyLabel {
  139. text: qsTr("Amount")
  140. tooltip: qsTr("Sets the metalness of the the material.")
  141. }
  142. SecondColumnLayout {
  143. SpinBox {
  144. minimumValue: 0
  145. maximumValue: 1
  146. decimals: 2
  147. stepSize: 0.1
  148. sliderIndicatorVisible: true
  149. backendValue: backendValues.metalness
  150. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  151. + StudioTheme.Values.actionIndicatorWidth
  152. }
  153. ExpandingSpacer {}
  154. }
  155. PropertyLabel {
  156. text: qsTr("Map")
  157. tooltip: qsTr("Sets a texture to be used to set the metalness amount for the different parts of the material.")
  158. }
  159. SecondColumnLayout {
  160. ItemFilterComboBox {
  161. typeFilter: "QtQuick3D.Texture"
  162. backendValue: backendValues.metalnessMap
  163. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  164. + StudioTheme.Values.actionIndicatorWidth
  165. }
  166. ExpandingSpacer {}
  167. }
  168. PropertyLabel {
  169. text: qsTr("Channel")
  170. tooltip: qsTr("Sets the texture channel used to read the metalness value from metalnessMap.")
  171. }
  172. SecondColumnLayout {
  173. ComboBox {
  174. scope: "Material"
  175. model: ["R", "G", "B", "A"]
  176. backendValue: backendValues.metalnessChannel
  177. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  178. + StudioTheme.Values.actionIndicatorWidth
  179. }
  180. ExpandingSpacer {}
  181. }
  182. }
  183. }
  184. Section {
  185. caption: qsTr("Roughness")
  186. width: parent.width
  187. SectionLayout {
  188. PropertyLabel {
  189. text: qsTr("Roughness")
  190. tooltip: qsTr("Sets the size of the specular highlight generated from lights, and the clarity of reflections in general.")
  191. }
  192. SecondColumnLayout {
  193. SpinBox {
  194. minimumValue: 0
  195. maximumValue: 1
  196. decimals: 2
  197. stepSize: 0.1
  198. sliderIndicatorVisible: true
  199. backendValue: backendValues.roughness
  200. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  201. + StudioTheme.Values.actionIndicatorWidth
  202. }
  203. ExpandingSpacer {}
  204. }
  205. PropertyLabel {
  206. text: qsTr("Map")
  207. tooltip: qsTr("Sets a texture to control the specular roughness of the material.")
  208. }
  209. SecondColumnLayout {
  210. ItemFilterComboBox {
  211. typeFilter: "QtQuick3D.Texture"
  212. backendValue: backendValues.roughnessMap
  213. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  214. + StudioTheme.Values.actionIndicatorWidth
  215. }
  216. ExpandingSpacer {}
  217. }
  218. PropertyLabel {
  219. text: qsTr("Channel")
  220. tooltip: qsTr("Sets the texture channel used to read the roughness value from roughnessMap.")
  221. }
  222. SecondColumnLayout {
  223. ComboBox {
  224. scope: "Material"
  225. model: ["R", "G", "B", "A"]
  226. backendValue: backendValues.roughnessChannel
  227. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  228. + StudioTheme.Values.actionIndicatorWidth
  229. }
  230. ExpandingSpacer {}
  231. }
  232. }
  233. }
  234. Section {
  235. caption: qsTr("Normal")
  236. width: parent.width
  237. SectionLayout {
  238. PropertyLabel {
  239. text: qsTr("Map")
  240. tooltip: qsTr("Sets an RGB image used to simulate fine geometry displacement across the surface of the material.")
  241. }
  242. SecondColumnLayout {
  243. ItemFilterComboBox {
  244. typeFilter: "QtQuick3D.Texture"
  245. backendValue: backendValues.normalMap
  246. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  247. + StudioTheme.Values.actionIndicatorWidth
  248. }
  249. ExpandingSpacer {}
  250. }
  251. PropertyLabel {
  252. text: qsTr("Strength")
  253. tooltip: qsTr("Sets the amount of simulated displacement for the normalMap.")
  254. }
  255. SecondColumnLayout {
  256. SpinBox {
  257. minimumValue: 0
  258. maximumValue: 1
  259. decimals: 2
  260. stepSize: 0.1
  261. sliderIndicatorVisible: true
  262. backendValue: backendValues.normalStrength
  263. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  264. + StudioTheme.Values.actionIndicatorWidth
  265. }
  266. ExpandingSpacer {}
  267. }
  268. }
  269. }
  270. Section {
  271. caption: qsTr("Occlusion")
  272. width: parent.width
  273. SectionLayout {
  274. PropertyLabel {
  275. text: qsTr("Amount")
  276. tooltip: qsTr("Sets the factor used to modify the values from the occlusionMap texture.")
  277. }
  278. SecondColumnLayout {
  279. SpinBox {
  280. minimumValue: 0
  281. maximumValue: 1
  282. decimals: 2
  283. stepSize: 0.1
  284. sliderIndicatorVisible: true
  285. backendValue: backendValues.occlusionAmount
  286. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  287. + StudioTheme.Values.actionIndicatorWidth
  288. }
  289. ExpandingSpacer {}
  290. }
  291. PropertyLabel {
  292. text: qsTr("Map")
  293. tooltip: qsTr("Sets a texture used to determine how much indirect light the different areas of the material should receive.")
  294. }
  295. SecondColumnLayout {
  296. ItemFilterComboBox {
  297. typeFilter: "QtQuick3D.Texture"
  298. backendValue: backendValues.occlusionMap
  299. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  300. + StudioTheme.Values.actionIndicatorWidth
  301. }
  302. ExpandingSpacer {}
  303. }
  304. PropertyLabel {
  305. text: qsTr("Channel")
  306. tooltip: qsTr("Sets the texture channel used to read the occlusion value from occlusionMap.")
  307. }
  308. SecondColumnLayout {
  309. ComboBox {
  310. scope: "Material"
  311. model: ["R", "G", "B", "A"]
  312. backendValue: backendValues.occlusionChannel
  313. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  314. + StudioTheme.Values.actionIndicatorWidth
  315. }
  316. ExpandingSpacer {}
  317. }
  318. }
  319. }
  320. Section {
  321. caption: qsTr("Opacity")
  322. width: parent.width
  323. SectionLayout {
  324. PropertyLabel {
  325. text: qsTr("Amount")
  326. tooltip: qsTr("Sets the opacity of just this material, separate from the model.")
  327. }
  328. SecondColumnLayout {
  329. SpinBox {
  330. minimumValue: 0
  331. maximumValue: 1
  332. decimals: 2
  333. stepSize: 0.1
  334. sliderIndicatorVisible: true
  335. backendValue: backendValues.opacity
  336. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  337. + StudioTheme.Values.actionIndicatorWidth
  338. }
  339. ExpandingSpacer {}
  340. }
  341. PropertyLabel {
  342. text: qsTr("Map")
  343. tooltip: qsTr("Sets a texture used to control the opacity differently for different parts of the material.")
  344. }
  345. SecondColumnLayout {
  346. ItemFilterComboBox {
  347. typeFilter: "QtQuick3D.Texture"
  348. backendValue: backendValues.opacityMap
  349. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  350. + StudioTheme.Values.actionIndicatorWidth
  351. }
  352. ExpandingSpacer {}
  353. }
  354. PropertyLabel {
  355. text: qsTr("Channel")
  356. tooltip: qsTr("Sets the texture channel used to read the opacity value from opacityMap.")
  357. }
  358. SecondColumnLayout {
  359. ComboBox {
  360. scope: "Material"
  361. model: ["R", "G", "B", "A"]
  362. backendValue: backendValues.opacityChannel
  363. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  364. + StudioTheme.Values.actionIndicatorWidth
  365. }
  366. ExpandingSpacer {}
  367. }
  368. PropertyLabel {
  369. text: qsTr("Invert Channel")
  370. tooltip: qsTr("Invert the values of the opacity map.")
  371. }
  372. SecondColumnLayout {
  373. CheckBox {
  374. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  375. backendValue: backendValues.invertOpacityMapValue
  376. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  377. + StudioTheme.Values.actionIndicatorWidth
  378. }
  379. ExpandingSpacer {}
  380. }
  381. }
  382. }
  383. Section {
  384. caption: qsTr("Emissive Color")
  385. width: parent.width
  386. SectionLayout {
  387. PropertyLabel {
  388. text: qsTr("Map")
  389. tooltip: qsTr("Sets a texture to be used to set the emissive factor for different parts of the material.")
  390. }
  391. SecondColumnLayout {
  392. ItemFilterComboBox {
  393. typeFilter: "QtQuick3D.Texture"
  394. backendValue: backendValues.emissiveMap
  395. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  396. + StudioTheme.Values.actionIndicatorWidth
  397. }
  398. ExpandingSpacer {}
  399. }
  400. PropertyLabel {
  401. text: qsTr("Factor")
  402. tooltip: qsTr("Sets the color of self-illumination for this material.")
  403. }
  404. SecondColumnLayout {
  405. SpinBox {
  406. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  407. + StudioTheme.Values.actionIndicatorWidth
  408. minimumValue: 0
  409. maximumValue: 16
  410. decimals: 2
  411. stepSize: 0.01
  412. sliderIndicatorVisible: true
  413. backendValue: backendValues.emissiveFactor_x
  414. }
  415. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  416. ControlLabel {
  417. text: "R"
  418. color: StudioTheme.Values.theme3DAxisXColor
  419. }
  420. ExpandingSpacer {}
  421. }
  422. PropertyLabel {}
  423. SecondColumnLayout {
  424. SpinBox {
  425. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  426. + StudioTheme.Values.actionIndicatorWidth
  427. minimumValue: 0
  428. maximumValue: 16
  429. decimals: 2
  430. stepSize: 0.01
  431. sliderIndicatorVisible: true
  432. backendValue: backendValues.emissiveFactor_y
  433. }
  434. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  435. ControlLabel {
  436. text: "G"
  437. color: StudioTheme.Values.theme3DAxisYColor
  438. }
  439. ExpandingSpacer {}
  440. }
  441. PropertyLabel {}
  442. SecondColumnLayout {
  443. SpinBox {
  444. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  445. + StudioTheme.Values.actionIndicatorWidth
  446. minimumValue: 0
  447. maximumValue: 16
  448. decimals: 2
  449. stepSize: 0.01
  450. sliderIndicatorVisible: true
  451. backendValue: backendValues.emissiveFactor_z
  452. }
  453. Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
  454. ControlLabel {
  455. text: "B"
  456. color: StudioTheme.Values.theme3DAxisZColor
  457. }
  458. ExpandingSpacer {}
  459. }
  460. PropertyLabel {
  461. text: qsTr("Use Single Channel")
  462. tooltip: qsTr("Use only a single channel from emissiveMap.")
  463. }
  464. SecondColumnLayout {
  465. CheckBox {
  466. id: emissiveSingleChannelCheckBox
  467. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  468. backendValue: backendValues.emissiveSingleChannelEnabled
  469. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  470. + StudioTheme.Values.actionIndicatorWidth
  471. }
  472. ExpandingSpacer {}
  473. }
  474. PropertyLabel {
  475. text: qsTr("Channel")
  476. tooltip: qsTr("Sets the texture channel used to read the emissive value from emissiveMap.")
  477. }
  478. SecondColumnLayout {
  479. ComboBox {
  480. enabled: emissiveSingleChannelCheckBox.checked
  481. scope: "Material"
  482. model: ["R", "G", "B", "A"]
  483. backendValue: backendValues.emissiveChannel
  484. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  485. + StudioTheme.Values.actionIndicatorWidth
  486. }
  487. ExpandingSpacer {}
  488. }
  489. }
  490. }
  491. Section {
  492. caption: qsTr("Height")
  493. width: parent.width
  494. SectionLayout {
  495. PropertyLabel {
  496. text: qsTr("Amount")
  497. tooltip: qsTr("Sets the factor used to modify the values from the heightMap texture.")
  498. }
  499. SecondColumnLayout {
  500. SpinBox {
  501. minimumValue: 0
  502. maximumValue: 1
  503. decimals: 2
  504. stepSize: 0.1
  505. sliderIndicatorVisible: true
  506. backendValue: backendValues.heightAmount
  507. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  508. + StudioTheme.Values.actionIndicatorWidth
  509. }
  510. ExpandingSpacer {}
  511. }
  512. PropertyLabel {
  513. text: qsTr("Map")
  514. tooltip: qsTr("Sets a texture used to determine the height the texture will be displaced when rendered through the use of Parallax Mapping.")
  515. }
  516. SecondColumnLayout {
  517. ItemFilterComboBox {
  518. typeFilter: "QtQuick3D.Texture"
  519. backendValue: backendValues.heightMap
  520. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  521. + StudioTheme.Values.actionIndicatorWidth
  522. }
  523. ExpandingSpacer {}
  524. }
  525. PropertyLabel {
  526. text: qsTr("Channel")
  527. tooltip: qsTr("Sets the texture channel used to read the height value from heightMap.")
  528. }
  529. SecondColumnLayout {
  530. ComboBox {
  531. scope: "Material"
  532. model: ["R", "G", "B", "A"]
  533. backendValue: backendValues.heightChannel
  534. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  535. + StudioTheme.Values.actionIndicatorWidth
  536. }
  537. ExpandingSpacer {}
  538. }
  539. PropertyLabel {
  540. text: qsTr("Min Map Samples")
  541. tooltip: qsTr("Sets the minimum number of samples used for performing Parallex Occlusion Mapping using the heightMap.")
  542. }
  543. SecondColumnLayout {
  544. SpinBox {
  545. minimumValue: 1
  546. maximumValue: 128
  547. decimals: 0
  548. sliderIndicatorVisible: true
  549. backendValue: backendValues.minHeightMapSamples
  550. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  551. + StudioTheme.Values.actionIndicatorWidth
  552. }
  553. ExpandingSpacer {}
  554. }
  555. PropertyLabel {
  556. text: qsTr("Max Map Samples")
  557. tooltip: qsTr("Sets the maximum number of samples used for performing Parallex Occlusion Mapping using the heightMap.")
  558. }
  559. SecondColumnLayout {
  560. SpinBox {
  561. minimumValue: 1
  562. maximumValue: 256
  563. decimals: 0
  564. sliderIndicatorVisible: true
  565. backendValue: backendValues.maxHeightMapSamples
  566. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  567. + StudioTheme.Values.actionIndicatorWidth
  568. }
  569. ExpandingSpacer {}
  570. }
  571. }
  572. }
  573. Section {
  574. caption: qsTr("Clearcoat")
  575. width: parent.width
  576. SectionLayout {
  577. PropertyLabel {
  578. text: qsTr("Amount")
  579. tooltip: qsTr("Sets the intensity of the clearcoat layer.")
  580. }
  581. SecondColumnLayout {
  582. SpinBox {
  583. minimumValue: 0
  584. maximumValue: 1
  585. decimals: 2
  586. stepSize: 0.1
  587. sliderIndicatorVisible: true
  588. backendValue: backendValues.clearcoatAmount
  589. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  590. + StudioTheme.Values.actionIndicatorWidth
  591. }
  592. ExpandingSpacer {}
  593. }
  594. PropertyLabel {
  595. text: qsTr("Map")
  596. tooltip: qsTr("Sets a texture used to determine the intensity of the clearcoat layer.")
  597. }
  598. SecondColumnLayout {
  599. ItemFilterComboBox {
  600. typeFilter: "QtQuick3D.Texture"
  601. backendValue: backendValues.clearcoatMap
  602. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  603. + StudioTheme.Values.actionIndicatorWidth
  604. }
  605. ExpandingSpacer {}
  606. }
  607. PropertyLabel {
  608. text: qsTr("Channel")
  609. tooltip: qsTr("Sets the texture channel used to read the intensity from clearcoatMap.")
  610. }
  611. SecondColumnLayout {
  612. ComboBox {
  613. scope: "Material"
  614. model: ["R", "G", "B", "A"]
  615. backendValue: backendValues.clearcoatChannel
  616. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  617. + StudioTheme.Values.actionIndicatorWidth
  618. }
  619. ExpandingSpacer {}
  620. }
  621. PropertyLabel {
  622. text: qsTr("Roughness Amount")
  623. tooltip: qsTr("Sets the roughness of the clearcoat layer.")
  624. }
  625. SecondColumnLayout {
  626. SpinBox {
  627. minimumValue: 0
  628. maximumValue: 1
  629. decimals: 2
  630. stepSize: 0.1
  631. sliderIndicatorVisible: true
  632. backendValue: backendValues.clearcoatRoughnessAmount
  633. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  634. + StudioTheme.Values.actionIndicatorWidth
  635. }
  636. ExpandingSpacer {}
  637. }
  638. PropertyLabel {
  639. text: qsTr("Roughness Map")
  640. tooltip: qsTr("Sets a texture used to determine the roughness of the clearcoat layer.")
  641. }
  642. SecondColumnLayout {
  643. ItemFilterComboBox {
  644. typeFilter: "QtQuick3D.Texture"
  645. backendValue: backendValues.clearcoatRoughnessMap
  646. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  647. + StudioTheme.Values.actionIndicatorWidth
  648. }
  649. ExpandingSpacer {}
  650. }
  651. PropertyLabel {
  652. text: qsTr("Roughness Channel")
  653. tooltip: qsTr("Sets the texture channel used to read the roughness from clearcoatRoughnessMap.")
  654. }
  655. SecondColumnLayout {
  656. ComboBox {
  657. scope: "Material"
  658. model: ["R", "G", "B", "A"]
  659. backendValue: backendValues.clearcoatRoughnessChannel
  660. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  661. + StudioTheme.Values.actionIndicatorWidth
  662. }
  663. ExpandingSpacer {}
  664. }
  665. PropertyLabel {
  666. text: qsTr("Normal Map")
  667. tooltip: qsTr("Sets a texture used as a normalMap for the clearcoat layer.")
  668. }
  669. SecondColumnLayout {
  670. ItemFilterComboBox {
  671. typeFilter: "QtQuick3D.Texture"
  672. backendValue: backendValues.clearcoatNormalMap
  673. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  674. + StudioTheme.Values.actionIndicatorWidth
  675. }
  676. ExpandingSpacer {}
  677. }
  678. PropertyLabel {
  679. text: qsTr("Normal Strength")
  680. tooltip: qsTr("Sets the Normal Strength of the clearcoat layer.")
  681. }
  682. SecondColumnLayout {
  683. SpinBox {
  684. minimumValue: 0
  685. maximumValue: 1
  686. decimals: 2
  687. stepSize: 0.1
  688. sliderIndicatorVisible: true
  689. backendValue: backendValues.clearcoatNormalStrength
  690. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  691. + StudioTheme.Values.actionIndicatorWidth
  692. }
  693. ExpandingSpacer {}
  694. }
  695. PropertyLabel {
  696. text: qsTr("Fresnel Power")
  697. tooltip: qsTr("Sets the fresnel power.")
  698. }
  699. SecondColumnLayout {
  700. SpinBox {
  701. minimumValue: 0
  702. maximumValue: 1000
  703. stepSize: 0.1
  704. decimals: 2
  705. backendValue: backendValues.clearcoatFresnelPower
  706. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  707. + StudioTheme.Values.actionIndicatorWidth
  708. }
  709. ExpandingSpacer {}
  710. }
  711. PropertyLabel {
  712. text: qsTr("Enable scale and bias")
  713. tooltip: qsTr("Sets whether fresnel scale and bias are enabled.")
  714. }
  715. SecondColumnLayout {
  716. CheckBox {
  717. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  718. backendValue: backendValues.clearcoatFresnelScaleBiasEnabled
  719. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  720. + StudioTheme.Values.actionIndicatorWidth
  721. }
  722. ExpandingSpacer {}
  723. }
  724. PropertyLabel {
  725. text: qsTr("Fresnel Scale")
  726. tooltip: qsTr("Sets the fresnel scale.")
  727. }
  728. SecondColumnLayout {
  729. SpinBox {
  730. minimumValue: 0
  731. maximumValue: 5
  732. stepSize: 0.1
  733. decimals: 2
  734. backendValue: backendValues.clearcoatFresnelScale
  735. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  736. + StudioTheme.Values.actionIndicatorWidth
  737. }
  738. ExpandingSpacer {}
  739. }
  740. PropertyLabel {
  741. text: qsTr("Fresnel Bias")
  742. tooltip: qsTr("Sets the fresnel bias.")
  743. }
  744. SecondColumnLayout {
  745. SpinBox {
  746. minimumValue: -1
  747. maximumValue: 1
  748. stepSize: 0.1
  749. decimals: 2
  750. backendValue: backendValues.clearcoatFresnelBias
  751. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  752. + StudioTheme.Values.actionIndicatorWidth
  753. }
  754. ExpandingSpacer {}
  755. }
  756. }
  757. }
  758. Section {
  759. caption: qsTr("Refraction")
  760. width: parent.width
  761. SectionLayout {
  762. PropertyLabel {
  763. text: qsTr("Transmission Factor")
  764. tooltip: qsTr("Sets the base percentage of light that is transmitted through the surface.")
  765. }
  766. SecondColumnLayout {
  767. SpinBox {
  768. minimumValue: 0
  769. maximumValue: 1
  770. decimals: 2
  771. stepSize: 0.1
  772. sliderIndicatorVisible: true
  773. backendValue: backendValues.transmissionFactor
  774. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  775. + StudioTheme.Values.actionIndicatorWidth
  776. }
  777. ExpandingSpacer {}
  778. }
  779. PropertyLabel {
  780. text: qsTr("Transmission Map")
  781. tooltip: qsTr("Sets a texture that contains the transmission percentage of a the surface.")
  782. }
  783. SecondColumnLayout {
  784. ItemFilterComboBox {
  785. typeFilter: "QtQuick3D.Texture"
  786. backendValue: backendValues.transmissionMap
  787. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  788. + StudioTheme.Values.actionIndicatorWidth
  789. }
  790. ExpandingSpacer {}
  791. }
  792. PropertyLabel {
  793. text: qsTr("Transmission Channel")
  794. tooltip: qsTr("Sets the texture channel used to read the transmission percentage from transmissionMap.")
  795. }
  796. SecondColumnLayout {
  797. ComboBox {
  798. scope: "Material"
  799. model: ["R", "G", "B", "A"]
  800. backendValue: backendValues.transmissionChannel
  801. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  802. + StudioTheme.Values.actionIndicatorWidth
  803. }
  804. ExpandingSpacer {}
  805. }
  806. PropertyLabel {
  807. text: qsTr("Index of Refraction")
  808. tooltip: qsTr("Sets the index of refraction of the material.")
  809. }
  810. SecondColumnLayout {
  811. SpinBox {
  812. minimumValue: 1
  813. maximumValue: 3
  814. decimals: 2
  815. stepSize: 0.1
  816. sliderIndicatorVisible: true
  817. backendValue: backendValues.indexOfRefraction
  818. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  819. + StudioTheme.Values.actionIndicatorWidth
  820. }
  821. ExpandingSpacer {}
  822. }
  823. PropertyLabel {
  824. text: qsTr("Thickness Factor")
  825. tooltip: qsTr("Sets the thickness of the volume beneath the surface in model coordinate space.")
  826. }
  827. SecondColumnLayout {
  828. SpinBox {
  829. minimumValue: 0
  830. maximumValue: Infinity
  831. decimals: 2
  832. backendValue: backendValues.thicknessFactor
  833. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  834. + StudioTheme.Values.actionIndicatorWidth
  835. }
  836. ExpandingSpacer {}
  837. }
  838. PropertyLabel {
  839. text: qsTr("Thickness Map")
  840. tooltip: qsTr("Sets a texture that contains the thickness of a the material volume.")
  841. }
  842. SecondColumnLayout {
  843. ItemFilterComboBox {
  844. typeFilter: "QtQuick3D.Texture"
  845. backendValue: backendValues.thicknessMap
  846. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  847. + StudioTheme.Values.actionIndicatorWidth
  848. }
  849. ExpandingSpacer {}
  850. }
  851. PropertyLabel {
  852. text: qsTr("Thickness Channel")
  853. tooltip: qsTr("Sets the texture channel used to read the thickness amount from thicknessMap.")
  854. }
  855. SecondColumnLayout {
  856. ComboBox {
  857. scope: "Material"
  858. model: ["R", "G", "B", "A"]
  859. backendValue: backendValues.thicknessChannel
  860. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  861. + StudioTheme.Values.actionIndicatorWidth
  862. }
  863. ExpandingSpacer {}
  864. }
  865. PropertyLabel {
  866. text: qsTr("Attenuation Color")
  867. tooltip: qsTr("Sets the color that white lights turn into due to absorption when reaching the attenuation distance.")
  868. }
  869. ColorEditor {
  870. backendValue: backendValues.attenuationColor
  871. supportGradient: false
  872. }
  873. PropertyLabel {
  874. text: qsTr("Attenuation Distance")
  875. tooltip: qsTr("Sets the average distance in world space that light travels in the medium before interacting with a particle.")
  876. }
  877. SecondColumnLayout {
  878. SpinBox {
  879. minimumValue: 0
  880. maximumValue: Infinity
  881. decimals: 2
  882. backendValue: backendValues.attenuationDistance
  883. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  884. + StudioTheme.Values.actionIndicatorWidth
  885. }
  886. ExpandingSpacer {}
  887. }
  888. }
  889. }
  890. Section {
  891. caption: qsTr("Fresnel")
  892. width: parent.width
  893. SectionLayout {
  894. PropertyLabel {
  895. text: qsTr("Fresnel Power")
  896. tooltip: qsTr("Sets the fresnel power.")
  897. }
  898. SecondColumnLayout {
  899. SpinBox {
  900. minimumValue: 0
  901. maximumValue: 1000
  902. stepSize: 0.1
  903. decimals: 2
  904. backendValue: backendValues.fresnelPower
  905. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  906. + StudioTheme.Values.actionIndicatorWidth
  907. }
  908. ExpandingSpacer {}
  909. }
  910. PropertyLabel {
  911. text: qsTr("Enable scale and bias")
  912. tooltip: qsTr("Sets whether fresnel scale and bias are enabled.")
  913. }
  914. SecondColumnLayout {
  915. CheckBox {
  916. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  917. backendValue: backendValues.fresnelScaleBiasEnabled
  918. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  919. + StudioTheme.Values.actionIndicatorWidth
  920. }
  921. ExpandingSpacer {}
  922. }
  923. PropertyLabel {
  924. text: qsTr("Fresnel Scale")
  925. tooltip: qsTr("Sets the fresnel scale.")
  926. }
  927. SecondColumnLayout {
  928. SpinBox {
  929. minimumValue: 0
  930. maximumValue: 5
  931. stepSize: 0.1
  932. decimals: 2
  933. backendValue: backendValues.fresnelScale
  934. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  935. + StudioTheme.Values.actionIndicatorWidth
  936. }
  937. ExpandingSpacer {}
  938. }
  939. PropertyLabel {
  940. text: qsTr("Fresnel Bias")
  941. tooltip: qsTr("Sets the fresnel bias.")
  942. }
  943. SecondColumnLayout {
  944. SpinBox {
  945. minimumValue: -1
  946. maximumValue: 1
  947. stepSize: 0.1
  948. decimals: 2
  949. backendValue: backendValues.fresnelBias
  950. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  951. + StudioTheme.Values.actionIndicatorWidth
  952. }
  953. ExpandingSpacer {}
  954. }
  955. }
  956. }
  957. Section {
  958. caption: qsTr("Vertex Color")
  959. width: parent.width
  960. SectionLayout {
  961. PropertyLabel {
  962. text: qsTr("Show Colors")
  963. tooltip: qsTr("Sets whether vertex colors are used to modulate the base color.")
  964. }
  965. SecondColumnLayout {
  966. CheckBox {
  967. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  968. backendValue: backendValues.vertexColorsEnabled
  969. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  970. + StudioTheme.Values.actionIndicatorWidth
  971. }
  972. ExpandingSpacer {}
  973. }
  974. PropertyLabel {
  975. text: qsTr("Enable Masks")
  976. tooltip: qsTr("Sets whether vertex colors mask are used.")
  977. }
  978. SecondColumnLayout {
  979. CheckBox {
  980. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  981. backendValue: backendValues.vertexColorsMaskEnabled
  982. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  983. + StudioTheme.Values.actionIndicatorWidth
  984. }
  985. ExpandingSpacer {}
  986. }
  987. ListModel {
  988. id: colorMaskModel
  989. ListElement {
  990. name: "Roughness"
  991. flag: "RoughnessMask"
  992. }
  993. ListElement {
  994. name: "Normal Strength"
  995. flag: "NormalStrengthMask"
  996. }
  997. ListElement {
  998. name: "Specular Amount"
  999. flag: "SpecularAmountMask"
  1000. }
  1001. ListElement {
  1002. name: "Clearcoat Amount"
  1003. flag: "ClearcoatAmountMask"
  1004. }
  1005. ListElement {
  1006. name: "Clearcoat Roughness Amount"
  1007. flag: "ClearcoatRoughnessAmountMask"
  1008. }
  1009. ListElement {
  1010. name: "Clearcoat Normal Strength"
  1011. flag: "ClearcoatNormalStrengthMask"
  1012. }
  1013. ListElement {
  1014. name: "Height Amount"
  1015. flag: "HeightAmountMask"
  1016. }
  1017. ListElement {
  1018. name: "Metalness"
  1019. flag: "MetalnessMask"
  1020. }
  1021. ListElement {
  1022. name: "Occlusion Amount"
  1023. flag: "OcclusionAmountMask"
  1024. }
  1025. ListElement {
  1026. name: "Thickness Factor"
  1027. flag: "ThicknessFactorMask"
  1028. }
  1029. ListElement {
  1030. name: "Transmission Factor"
  1031. flag: "TransmissionFactorMask"
  1032. }
  1033. }
  1034. PropertyLabel {
  1035. text: qsTr("Mask R")
  1036. tooltip: qsTr("Sets the properties masked by the vertex color red channel.")
  1037. }
  1038. SecondColumnLayout {
  1039. FlagsComboBox {
  1040. backendValue: backendValues.vertexColorRedMask
  1041. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1042. + StudioTheme.Values.actionIndicatorWidth
  1043. itemsModel: colorMaskModel
  1044. scope: "PrincipledMaterial"
  1045. zeroFlag: "NoMask"
  1046. }
  1047. ExpandingSpacer {}
  1048. }
  1049. PropertyLabel {
  1050. text: qsTr("Mask G")
  1051. tooltip: qsTr("Sets the properties masked by the vertex color green channel.")
  1052. }
  1053. SecondColumnLayout {
  1054. FlagsComboBox {
  1055. backendValue: backendValues.vertexColorGreenMask
  1056. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1057. + StudioTheme.Values.actionIndicatorWidth
  1058. itemsModel: colorMaskModel
  1059. scope: "PrincipledMaterial"
  1060. zeroFlag: "NoMask"
  1061. }
  1062. ExpandingSpacer {}
  1063. }
  1064. PropertyLabel {
  1065. text: qsTr("Mask B")
  1066. tooltip: qsTr("Sets the properties masked by the vertex color blue channel.")
  1067. }
  1068. SecondColumnLayout {
  1069. FlagsComboBox {
  1070. backendValue: backendValues.vertexColorBlueMask
  1071. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1072. + StudioTheme.Values.actionIndicatorWidth
  1073. itemsModel: colorMaskModel
  1074. scope: "PrincipledMaterial"
  1075. zeroFlag: "NoMask"
  1076. }
  1077. ExpandingSpacer {}
  1078. }
  1079. PropertyLabel {
  1080. text: qsTr("Mask A")
  1081. tooltip: qsTr("Sets the properties masked by the vertex color alpha channel.")
  1082. }
  1083. SecondColumnLayout {
  1084. FlagsComboBox {
  1085. backendValue: backendValues.vertexColorAlphaMask
  1086. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1087. + StudioTheme.Values.actionIndicatorWidth
  1088. itemsModel: colorMaskModel
  1089. scope: "PrincipledMaterial"
  1090. zeroFlag: "NoMask"
  1091. }
  1092. ExpandingSpacer {}
  1093. }
  1094. }
  1095. }
  1096. Section {
  1097. caption: qsTr("Advanced")
  1098. width: parent.width
  1099. SectionLayout {
  1100. PropertyLabel {
  1101. text: qsTr("Point Size")
  1102. tooltip: qsTr("Sets the size of the points rendered, when the geometry is using a primitive type of points.")
  1103. }
  1104. SecondColumnLayout {
  1105. SpinBox {
  1106. minimumValue: 0
  1107. maximumValue: 1024
  1108. decimals: 0
  1109. backendValue: backendValues.pointSize
  1110. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1111. + StudioTheme.Values.actionIndicatorWidth
  1112. }
  1113. ExpandingSpacer {}
  1114. }
  1115. PropertyLabel {
  1116. text: qsTr("Line Width")
  1117. tooltip: qsTr("Sets the width of the lines rendered, when the geometry is using a primitive type of lines or line strips.")
  1118. }
  1119. SecondColumnLayout {
  1120. SpinBox {
  1121. minimumValue: 0
  1122. maximumValue: 1024
  1123. decimals: 0
  1124. backendValue: backendValues.lineWidth
  1125. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1126. + StudioTheme.Values.actionIndicatorWidth
  1127. }
  1128. ExpandingSpacer {}
  1129. }
  1130. }
  1131. }
  1132. Section {
  1133. caption: qsTr("Overrides")
  1134. width: parent.width
  1135. SectionLayout {
  1136. PropertyLabel {
  1137. text: qsTr("Specular Amount")
  1138. tooltip: qsTr("Override the strength of specularity (highlights and reflections).")
  1139. }
  1140. SecondColumnLayout {
  1141. SpinBox {
  1142. minimumValue: 0
  1143. maximumValue: 1
  1144. decimals: 2
  1145. stepSize: 0.1
  1146. sliderIndicatorVisible: true
  1147. backendValue: backendValues.specularAmount
  1148. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1149. + StudioTheme.Values.actionIndicatorWidth
  1150. }
  1151. ExpandingSpacer {}
  1152. }
  1153. PropertyLabel {
  1154. text: qsTr("Specular Map")
  1155. tooltip: qsTr("An RGB Texture to override the amount and the color of specularity across the surface of the material.")
  1156. }
  1157. SecondColumnLayout {
  1158. ItemFilterComboBox {
  1159. typeFilter: "QtQuick3D.Texture"
  1160. backendValue: backendValues.specularMap
  1161. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1162. + StudioTheme.Values.actionIndicatorWidth
  1163. }
  1164. ExpandingSpacer {}
  1165. }
  1166. PropertyLabel {
  1167. text: qsTr("Use Single Channel")
  1168. tooltip: qsTr("Use only a single channel from specularMap.")
  1169. }
  1170. SecondColumnLayout {
  1171. CheckBox {
  1172. id: specularSingleChannelCheckBox
  1173. text: checked ? qsTr("Enabled") : qsTr("Disabled")
  1174. backendValue: backendValues.specularSingleChannelEnabled
  1175. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  1176. + StudioTheme.Values.actionIndicatorWidth
  1177. }
  1178. ExpandingSpacer {}
  1179. }
  1180. PropertyLabel {
  1181. text: qsTr("Channel")
  1182. tooltip: qsTr("Sets the texture channel used to read the specular value from specularMap.")
  1183. }
  1184. SecondColumnLayout {
  1185. ComboBox {
  1186. enabled: specularSingleChannelCheckBox.checked
  1187. scope: "Material"
  1188. model: ["R", "G", "B", "A"]
  1189. backendValue: backendValues.specularChannel
  1190. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1191. + StudioTheme.Values.actionIndicatorWidth
  1192. }
  1193. ExpandingSpacer {}
  1194. }
  1195. PropertyLabel {
  1196. text: qsTr("Specular Tint")
  1197. tooltip: qsTr("Override how much of the base color contributes to the specular reflections.")
  1198. }
  1199. SecondColumnLayout {
  1200. SpinBox {
  1201. minimumValue: 0
  1202. maximumValue: 1
  1203. decimals: 2
  1204. stepSize: 0.1
  1205. sliderIndicatorVisible: true
  1206. backendValue: backendValues.specularTint
  1207. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1208. + StudioTheme.Values.actionIndicatorWidth
  1209. }
  1210. ExpandingSpacer {}
  1211. }
  1212. PropertyLabel {
  1213. text: qsTr("Reflection Map")
  1214. tooltip: qsTr("Sets a texture used for specular highlights on the material.")
  1215. }
  1216. SecondColumnLayout {
  1217. ItemFilterComboBox {
  1218. typeFilter: "QtQuick3D.Texture"
  1219. backendValue: backendValues.specularReflectionMap
  1220. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  1221. + StudioTheme.Values.actionIndicatorWidth
  1222. }
  1223. ExpandingSpacer {}
  1224. }
  1225. }
  1226. }
  1227. }