MetalRoughMaterial QML Type
该素材使用单渲染通道方法制作效果,并对每个片段进行照明。该技术适用于 OpenGL 3 和 OpenGL ES 3。更多...
Import Statement: | import Qt3D.Extras 2.9 |
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) 个平铺。
© 2025 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.