NormalDiffuseSpecularMapMaterial QML Type
NormalDiffuseSpecularMapMaterial(法线漫反射眩晕贴图材质)提供了峰值光照和凹凸效果的默认实现,其中漫反射光和眩晕光分量从纹理贴图中读取,而网格的法线则从法线纹理贴图中读取。更多
Import Statement: | import Qt3D.Extras 2.9 |
Inherits: | |
Status: | Deprecated |
该类型已被弃用。我们强烈建议不要在新代码中使用它。
属性
- ambient : color
- diffuse : TextureImage
- normal : TextureImage
- shininess : real
- specular : TextureImage
- textureScale : real
详细说明
镜面反射照明效果基于环境、漫反射和镜面反射三种照明成分的组合。这些成分的相对强度由它们的反射系数控制,而反射系数是以 RGB 三元组建模的:
- 环境光是物体在没有任何其他光源的情况下发出的颜色。
- 漫反射(Diffuse)是灯光在物体表面反射时发出的颜色。
- 镜面反射色是在灯光照射下闪亮表面反射时发出的颜色。
- 表面的光泽度由浮点属性控制。
该材质采用了单次渲染通过的效果方法,并对每个片段进行照明。该技术适用于 OpenGL 2、OpenGL 3 或更高版本以及 OpenGL ES 2。
属性文档
ambient : color |
当前环境色。
diffuse : TextureImage |
保存当前的漫反射贴图纹理。
默认情况下,漫反射纹理具有以下属性:
- 线性缩小和放大滤镜
- 启用混合贴图的线性混合贴图
- 重复包裹模式
- 最大各向异性为 16.0
normal : TextureImage |
保存当前的法线贴图纹理。
默认情况下,法线贴图具有以下属性:
- 线性缩小和放大滤镜
- 重复包裹模式
- 最大各向异性为 16.0
shininess : real |
保持当前的光泽度。
specular : TextureImage |
持有当前镜面贴图纹理。
默认情况下,镜面贴图具有以下属性:
- 线性缩小和放大滤镜
- 启用混合贴图的线性混合贴图
- 重复包裹模式
- 最大各向异性为 16.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.