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
상세 설명
점광원은 단일 지점에서 모든 방향으로 빛을 방출하는 광원입니다. 개념적으로 이는 일반적인 전구가 발산하는 빛과 유사합니다.
점광원은 거리에 따라 빛의 강도가 어떻게 감소하는지를 설명하기 위해 세 가지 감쇠 계수를 사용합니다. 이 계수들은 총 감쇠량을 계산할 때 함께 사용되도록 설계되었습니다. Qt3D Extras의 재료에서는 다음 공식이 사용되며, 여기서 거리는 광원과 렌더링되는 표면 사이의 거리를 의미합니다:
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.