Qt3DExtras::QNormalDiffuseMapAlphaMaterial Class

class Qt3DExtras::QNormalDiffuseMapAlphaMaterial

QNormalDiffuseMapAlphaMaterial(QNormalDiffuseMapAlphaMaterial)是QNormalDiffuseMapMaterial 的一种特殊化,它具有 alpha 覆盖范围,并在渲染过程中执行深度测试。更多

Header: #include <QNormalDiffuseMapAlphaMaterial>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
继承: Qt3DExtras::QNormalDiffuseMapMaterial
状态:已废弃

该类已被弃用。我们强烈建议不要在新代码中使用它。

公共函数

QNormalDiffuseMapAlphaMaterial(Qt3DCore::QNode *parent = nullptr)
virtual ~QNormalDiffuseMapAlphaMaterial()

详细说明

该类已废弃,请使用Qt3DExtras::QDiffuseSpecularMaterial 代替。

镜面反射照明效果基于环境、漫反射和镜面反射三种照明成分的组合。这些组件的相对强度由它们的反射系数控制,反射系数被模拟为 RGB 三元组:

  • 环境光是物体在没有任何其他光源的情况下发出的颜色。
  • 漫反射(Diffuse)是灯光在物体表面反射时发出的颜色。
  • 镜面反射色是在灯光照射下闪亮表面反射时发出的颜色。
  • 表面的光泽度由浮点属性控制。

该材质采用了单次渲染通过的效果方法,并对每个片段进行照明。该技术适用于 OpenGL 2、OpenGL 3 或更高版本以及 OpenGL ES 2。

成员函数文档

[explicit] QNormalDiffuseMapAlphaMaterial::QNormalDiffuseMapAlphaMaterial(Qt3DCore::QNode *parent = nullptr)

使用父对象parent 构建一个新的 QNormalDiffuseMapAlphaMaterial 实例。

[virtual noexcept] QNormalDiffuseMapAlphaMaterial::~QNormalDiffuseMapAlphaMaterial()

销毁QNormalDiffuseMapAlphaMaterial 实例。

© 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.