Qt3DExtras::QPerVertexColorMaterial Class
class Qt3DExtras::QPerVertexColorMaterialQPerVertexColorMaterial クラスは、各頂点に設定された色プロパティをレンダリングするためのデフォルトの実装を提供します。詳細...
| ヘッダー: | #include <qpervertexcolormaterial.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| 継承元: | Qt3DRender::QMaterial |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック関数
| QPerVertexColorMaterial(Qt3DCore::QNode *parent = nullptr) | |
| virtual | ~QPerVertexColorMaterial() |
詳細な説明
この照明効果は、アンビエントとディフューズの 2 つの照明コンポーネントの組み合わせに基づいています。アンビエントは頂点カラーによって設定されます。ディフューズは、各頂点の法線分布を考慮に入れます。
- アンビエントとは、他の光源がない状態でオブジェクトから放出される色のことです。
- ディフューズは、光による粗い表面の反射で発せられる色です。
このマテリアルは、シングルレンダーパス方式の効果を使用し、フラグメントライティングを形成します。OpenGL 2、OpenGL 3 以降、および OpenGL ES 2 向けのテクニックが用意されています。
メンバ関数のドキュメント
[explicit] QPerVertexColorMaterial::QPerVertexColorMaterial(Qt3DCore::QNode *parent = nullptr)
親オブジェクトparent を持つ新しいQPerVertexColorMaterialインスタンスを作成します。
[virtual noexcept] QPerVertexColorMaterial::~QPerVertexColorMaterial()
© 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.