QPerVertexColorMaterial Class
class Qt3DExtras::QPerVertexColorMaterialQPerVertexColorMaterial クラスは、各頂点に設定された色プロパティをレンダリングするためのデフォルトの実装を提供します。詳細...
ヘッダー | #include <QPerVertexColorMaterial> |
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つのライティングコンポーネントambientとdiffuseの組み合わせに基づいています。アンビエントは頂点の色によって設定されます。ディフューズは各頂点の正規分布を考慮します。
- アンビエント(Ambient)とは、他の光源がない場合にオブジェクトから発せられる色です。
- ディフューズは、ライトによる粗い表面の反射に対して発せられる色です。
このマテリアルは、シングルレンダーパスアプローチとフラグメントライティングを形成するエフェクトを使用します。テクニックはOpenGL 2、OpenGL 3以上、OpenGL ES 2用に提供されています。
メンバー関数ドキュメント
[explicit]
QPerVertexColorMaterial::QPerVertexColorMaterial(Qt3DCore::QNode *parent = nullptr)
親オブジェクトparent を持つ新しい QPerVertexColorMaterial インスタンスを構築します。
[virtual noexcept]
QPerVertexColorMaterial::~QPerVertexColorMaterial()
を破壊する。QPerVertexColorMaterial
© 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.