Qt3DExtras::QMorphPhongMaterial Class
class Qt3DExtras::QMorphPhongMaterialQMorphPhongMaterial クラスは、フォン照明効果のデフォルトの実装を提供します。詳細...
| ヘッダー: | #include <qmorphphongmaterial.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| 継承元: | Qt3DRender::QMaterial |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
|
パブリック関数
| QMorphPhongMaterial(Qt3DCore::QNode *parent = nullptr) | |
| virtual | ~QMorphPhongMaterial() |
| QColor | ambient() const |
| QColor | diffuse() const |
| float | interpolator() const |
| float | shininess() const |
| QColor | specular() const |
パブリックスロット
| void | setAmbient(const QColor &ambient) |
| void | setDiffuse(const QColor &diffuse) |
| void | setInterpolator(float interpolator) |
| void | setShininess(float shininess) |
| void | setSpecular(const QColor &specular) |
シグナル
| void | ambientChanged(const QColor &ambient) |
| void | diffuseChanged(const QColor &diffuse) |
| void | interpolatorChanged(float interpolator) |
| void | shininessChanged(float shininess) |
| void | specularChanged(const QColor &specular) |
詳細な説明
フォン照明効果は、アンビエント、ディフューズ、スペキュラーという 3 つの照明成分の組み合わせに基づいています。これらの成分の相対的な強さは、RGB トリプレットとしてモデル化された反射率係数によって制御されます。
- アンビエントとは、他の光源がない状態でオブジェクトから放射される色のことです。
- ディフューズは、光が粗い表面で反射した際に発せられる色です。
- スペキュラーは、光による光沢のある表面の反射で発せられる色です。
- 表面の光沢度は、float型のプロパティによって制御されます。
このマテリアルは、シングル・レンダー・パス方式の効果を使用し、フラグメントごとのライティングを実行します。OpenGL 2、OpenGL 3 以降、および OpenGL ES 2 向けの技術が提供されています。
プロパティのドキュメント
ambient : QColor
周囲の色を保持します。
アクセス関数:
| QColor | ambient() const |
| void | setAmbient(const QColor &ambient) |
通知シグナル:
| void | ambientChanged(const QColor &ambient) |
diffuse : QColor
拡散色を保持します。
アクセス関数:
| QColor | diffuse() const |
| void | setDiffuse(const QColor &diffuse) |
通知シグナル:
| void | diffuseChanged(const QColor &diffuse) |
interpolator : float
Phongライティング効果の補間方法を指定します。
アクセス関数:
| float | interpolator() const |
| void | setInterpolator(float interpolator) |
通知シグナル:
| void | interpolatorChanged(float interpolator) |
shininess : float
光沢指数を保持します。
アクセス関数:
| float | shininess() const |
| void | setShininess(float shininess) |
通知シグナル:
| void | shininessChanged(float shininess) |
specular : QColor
スペキュラーカラーを保持します。
アクセス関数:
| QColor | specular() const |
| void | setSpecular(const QColor &specular) |
通知シグナル:
| void | specularChanged(const QColor &specular) |
メンバ関数のドキュメント
[explicit] QMorphPhongMaterial::QMorphPhongMaterial(Qt3DCore::QNode *parent = nullptr)
親オブジェクトparent を持つ新しいQMorphPhongMaterialインスタンスを作成します。
[virtual noexcept] QMorphPhongMaterial::~QMorphPhongMaterial()
QMorphPhongMaterial を破棄します。
© 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.