이 페이지에서

Qt3DRender::QDirectionalLight Class

class Qt3DRender::QDirectionalLight

Qt 3D 장면에서 방향성 광원 오브젝트를 캡슐화합니다. 더 보기...

헤더: #include <qdirectionallight.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: DirectionalLight
상속: Qt3DRender::QAbstractLight
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.

속성

공개 함수

QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
QVector3D worldDirection() const

공개 슬롯

void setWorldDirection(const QVector3D &worldDirection)

신호

void worldDirectionChanged(const QVector3D &worldDirection)

상세 설명

방향성 광원은 햇빛과 유사하게 작동하는 광원입니다. 방향성 광원에서 나오는 빛은 씬 내의 위치와 상관없이 모든 오브젝트에 동일한 방향과 강도로 비춥니다.

속성 설명

worldDirection : QVector3D

방향성 조명의 세계 좌표계 방향을 지정합니다.

참고: 이 속성의 정확한의미와 사용법은 머티리얼 구현에 따라 다릅니다.

액세스 함수:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

알림 신호:

void worldDirectionChanged(const QVector3D &worldDirection)

멤버 함수 문서

[explicit] QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)

지정된 parent 를 사용하여 새로운 QDirectionalLight 객체를 생성합니다.

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