PointLight QML Type
Qt 3D のシーン内で「Point Light」オブジェクトをカプセル化します。詳細...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QPointLight |
| Inherits: | |
| Status: | Deprecated |
この型は非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- constantAttenuation : real
- linearAttenuation : real
- quadraticAttenuation : real
詳細説明
点光源とは、単一の点から全方向に光を放射する光源のことです。概念的には、これは一般的な電球が発する光に似ています。
点光源では、距離とともに光の強度がどのように減衰するかを記述するために、3つの減衰係数が用いられます。これらの係数は、総減衰量を計算する際に組み合わせて使用されるよう設計されています。Qt3D Extrasのマテリアルでは、以下の式が使用されます。ここで、distanceは光源からレンダリング対象の表面までの距離です:
totalAttenuation = 1.0 / (constantAttenuation + (linearAttenuation * distance) + (quadraticAttenuation * distance * distance));カスタムマテリアルでは、これらの係数を異なる方法で解釈することも可能です。
プロパティのドキュメント
constantAttenuation : real
点光源の定数減衰率を指定します。
注: このプロパティの正確な意味と使用方法は 、マテリアル実装によって異なります。
linearAttenuation : real
点光源の線形減衰を指定します。
注: このプロパティの正確な意味と 使用方法は 、マテリアルの実装に依存します。
quadraticAttenuation : real
点光源の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.