PhongAlphaMaterial QML Type
PhongAlphaMaterial 类提供了带透明度的 Phong 光照效果的默认实现。更多内容...
| Import Statement: | import Qt3D.Extras 2.12 |
| 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 三元组的形式建模:
- 环境光是指在没有其他光源的情况下,物体自身发出的颜色。
- 漫反射是指物体在粗糙表面上反射光线时发出的颜色。
- 镜面反射是指光线在光滑表面上反射时发出的颜色。
- 表面的光泽度由一个浮点属性控制。
- Alpha 表示表面的透明度,取值范围在 0(完全透明)到 1(不透明)之间。
该材质采用单渲染通道的方法,并执行基于片段的照明。提供了适用于 OpenGL 2、OpenGL 3 或更高版本以及 OpenGL ES 2 的技术。
属性文档
alpha : real
存储对象的透明度(alpha)成分,其取值范围在 0 到 1 之间。
默认值为 0.5。
ambient : color
保存当前的环境颜色。
blendFunctionArg : BlendEquation::BlendFunction
保存混合方程函数的参数。
另请参阅 Qt3DRender::QBlendEquation::BlendFunction 。
destinationAlphaArg : BlendEquationArguments::Blending
保存混合方程的目标阿尔法混合参数。
另请参阅 Qt3DRender::QBlendEquationArguments::Blending 。
destinationRgbArg : BlendEquationArguments::Blending
保存混合方程的目标 RGB 混合参数。
另请参阅 Qt3DRender::QBlendEquationArguments::Blending 。
diffuse : color
保存当前的漫反射颜色。
shininess : real
保持当前的光泽度。
sourceAlphaArg : BlendEquationArguments::Blending
保存混合方程源的alpha混合参数。
另请参阅 Qt3DRender::QBlendEquationArguments::Blending 。
sourceRgbArg : BlendEquationArguments::Blending
保存混合方程的源RGB混合参数。
另请参阅 Qt3DRender::QBlendEquationArguments::Blending 。
specular : color
存储当前的镜面反射颜色。
© 2026 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.