SpotLight QML Type

Qt 3D シーン内の Spot Light オブジェクトをカプセル化します。詳細...

Import Statement: import Qt3D.Render 2.8
In C++: QSpotLight
Status: Deprecated

プロパティ

詳細説明

スポットライトは、特定の方向に円錐状の光を放つ光源です。

スポットライトは、3つの減衰係数を使用して、光の強度が距離とともにどのように減少するかを説明します。これらの係数は、全減衰を計算する際に一緒に使用するように設計されています。Qt3D Extrasのマテリアルでは以下の式が使用され、距離はライトからレンダリングされるサーフェスまでの距離です:

totalAttenuation = 1.0 / (constantAttenuation + (linearAttenuation * distance) + (quadraticAttenuation * distance * distance));

カスタムマテリアルでは、これらの係数を異なるように解釈することができます。

プロパティの説明

constantAttenuation : float

スポットライトの一定の減衰を指定します。

注意: このプロパティの正確な意味と使用方法はマテリアルの実装次第です。


cutOffAngle : float

スポット光のカットオフ角度を指定します。

注: このプロパティの正確な意味と使用方法は、材料の実装次第です。


linearAttenuation : float

スポット光の線形減衰を指定します。

注: このプロパティの正確な意味と使用方法は、マテリアルの実装次第です。


localDirection : vector3d

スポット光のローカル方向を指定します。

注: このプロパティの正確な意味と使用方法は、マテリアルの実装次第です。


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.