PhongMaterial QML Type

PhongMaterial 类提供了 phong 灯光效果的默认实现。更多

Import Statement: import Qt3D.Extras 2.9
Inherits:

Material

Status: Deprecated

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

属性

详细说明

phong 灯光效果基于环境、漫反射和镜面三种照明成分的组合。这些组件的相对强度由其反射系数控制,反射系数以 RGB 三元组建模:

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

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

属性文档

ambient : color

当前环境色。


diffuse : color

当前漫反射颜色


shininess : real

当前光泽度


specular : color

当前镜面反射颜色


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