PointLight QML Type
Qt 3D シーン内の Point Light オブジェクトをカプセル化します。詳細...
Import Statement: | import Qt3D.Render 2.8 |
In C++: | QPointLight |
Status: | Deprecated |
プロパティ
- constantAttenuation : float
- linearAttenuation : float
- quadraticAttenuation : float
詳細説明
点光源とは、1つの点からあらゆる方向に光を放つ光源である。概念的には、標準的な電球が放つ光に似ています。
点光源は、3つの減衰係数を使用して、光の強度が距離とともにどのように減少するかを説明します。これらの減衰係数は、全減衰を計算する際に一緒に使用するように設計されています。Qt3D Extrasのマテリアルでは以下の式が使用され、距離はライトからレンダリングされるサーフェスまでの距離です:
totalAttenuation = 1.0 / (constantAttenuation + (linearAttenuation * distance) + (quadraticAttenuation * distance * distance));
カスタムマテリアルでは、これらの係数を異なるように解釈することができます。
プロパティの説明
constantAttenuation : float |
ポイントライトの一定の減衰を指定します。
注意: このプロパティの正確な意味と使用方法はマテリアルの実装次第です。
linearAttenuation : float |
点光源の線形減衰を指定します。
注: このプロパティの正確な意味と使用方法は、マテリアルの実装次第です。
quadraticAttenuation : float |
点光源の2次減衰を指定します。
注意 :このプロパティの正確な意味と使用方法は、マテリアルの実装次第です。
© 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.