PerVertexColorMaterial QML Type
PerVertexColorMaterial 类为渲染每个顶点所设置的颜色属性提供了默认实现。更多内容...
| Import Statement: | import Qt3D.Extras 2.12 |
| Inherits: | |
| Status: | Technology preview |
此类型处于技术预览阶段,可能会发生变更。
详细描述
此光照效果基于环境光和漫反射光这两个光照组件的组合。环境光由顶点颜色设定。漫反射光则考虑了每个顶点的法线分布。
- 环境光是指在没有其他光源的情况下,物体所发出的颜色。
- 漫反射是指物体表面在光线照射下产生的漫反射颜色
该材质采用单渲染通道的方法实现效果,并形成片段光照。提供了适用于 OpenGL 2、OpenGL 3 或更高版本以及 OpenGL ES 2 的技术方案。
© 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.