PhongAlphaMaterial QML Type
PhongAlphaMaterial 类提供了带有 alpha 的 phong 灯光效果的默认实现。更多
Import Statement: | import Qt3D.Extras 2.9 |
Inherits: | |
Status: | Deprecated |
该类型已被弃用。我们强烈建议不要在新代码中使用它。
属性
- alpha : real
- ambient : color
- blendFunctionArg : BlendEquation::BlendFunction
- destinationAlphaArg : BlendEquationArguments::Blending
- destinationRgbArg : BlendEquationArguments::Blending
- diffuse : color
- shininess : real
- sourceAlphaArg : BlendEquationArguments::Blending
- sourceRgbArg : BlendEquationArguments::Blending
- specular : color
详细说明
phong 灯光效果基于环境、漫反射和镜面三种照明成分的组合。这些组件的相对强度由其反射系数控制,反射系数以 RGB 三元组建模:
- 环境光是物体在没有任何其他光源的情况下发出的颜色。
- 漫反射(Diffuse)是灯光在物体表面反射时发出的颜色。
- 镜面反射色是在灯光照射下闪亮表面反射时发出的颜色。
- 表面的光泽度由浮点属性控制。
- Alpha 是表面的透明度,介于 0(完全透明)和 1(不透明)之间。
该材质使用单次渲染通过的方法产生效果,并对每个片段进行照明。该技术适用于 OpenGL 2、OpenGL 3 或更高版本以及 OpenGL ES 2。
属性文档
alpha : real |
对象的 alpha 分量,介于 0 和 1 之间。
默认值为 0.5。
ambient : color |
当前环境颜色。
blendFunctionArg : BlendEquation::BlendFunction |
保存混合方程函数参数。
destinationAlphaArg : BlendEquationArguments::Blending |
保存混合方程目标 alpha 混合参数。
destinationRgbArg : BlendEquationArguments::Blending |
持有混合方程目标 RGB 混合参数。
diffuse : color |
当前的漫反射颜色。
shininess : real |
当前光泽度。
sourceAlphaArg : BlendEquationArguments::Blending |
保存混合方程源 alpha 混合参数。
sourceRgbArg : BlendEquationArguments::Blending |
保存混合方程源 RGB 混合参数。
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.