MetalRoughMaterial QML Type
该素材使用单渲染通道方法制作效果,并对每个片段进行照明。该技术适用于 OpenGL 3 和 OpenGL ES 3。更多...
| Import Statement: | import Qt3D.Extras 2.11 |
| In C++: | QMetalRoughMaterial |
| Status: | Deprecated |
属性
- ambientOcclusion : Texture
- baseColor : variant
- metalness : variant
- normal : Texture
- roughness : variant
- textureScale : real
详细说明
财产文件
ambientOcclusion : Texture
保存当前材质的环境光遮蔽贴图纹理。该贴图只能是纹理,否则将被忽略。默认情况下不设置此贴图。
baseColor : variant
保存当前材质的基色。可以是纯色值,也可以是纹理。默认情况下,该属性的值为 "灰色"。
metalness : variant
保存材料当前的金属度等级,数值介于 0(默认为纯介电)和 1(默认为纯金属)之间。它可以是一个普通的统一值,也可以是一个纹理。默认情况下,该属性的值为 0。
normal : Texture
当前材质的法线贴图纹理。该贴图只能是纹理,否则将被忽略。默认情况下不设置此贴图。
roughness : variant
保存当前材料的粗糙度级别。它可以是一个普通的均匀值,也可以是一个纹理。默认情况下,此属性的值为 0。
textureScale : real
保存当前的纹理比例。它会在渲染时作为一个乘数应用到纹理坐标上。默认值为 1.0。
与 WrapMode.Repeat 结合使用时,textureScale 提供了一种简单的方法,可以将纹理平铺在表面上。例如,如果纹理比例为4.0 ,则会产生 16 (4x4) 个平铺。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.