PhongMaterial QML Type

PhongMaterial クラスは、フォンの照明効果のデフォルト実装を提供します。詳細...

Import Statement: import Qt3D.Extras 2.8
Inherits:

Material

Status: Deprecated

この型は非推奨です。新しいコードでは使用しないことを強くお勧めします。

プロパティ

詳細説明

フォンの照明効果は、アンビエント、ディフューズ、スペキュラの3つの照明コンポーネントの組み合わせに基づいています。これらのコンポーネントの相対的な強さは、RGBトリプレットとしてモデル化された反射率係数によって制御されます:

  • アンビエントは、他の光源がない場合に物体から発せられる色です。
  • ディフューズ(Diffuse)とは、ライトによる急激な表面反射に対して発せられる色です。
  • スペキュラ(Specular)とは、ライトによる表面の光沢のある反射に対して発せられる色です。
  • 表面の輝きは float プロパティで制御します。

このマテリアルは、シングル レンダー パス アプローチのエフェクトを使用し、フラグメントごとにライティングを実行します。テクニックはOpenGL 2、OpenGL 3以上、OpenGL ES 2用に提供されています。

プロパティの説明

ambient : color

現在のアンビエントカラーを保持します。


diffuse : color

現在のディフューズカラーを保持します。


shininess : real

現在の輝度を保持します。


specular : color

現在のスペキュラカラーを保持します。


© 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.