Encapsulate a Directional Light object in a Qt 3D scene. 更多...
| 頭: | #include <QDirectionalLight> |
| qmake: | QT += 3drender |
| Since: | Qt 5.7 |
| 實例化: | DirectionalLight |
| 繼承: | Qt3DRender::QAbstractLight |
| QDirectionalLight (Qt3DCore::QNode * parent = nullptr) | |
| QVector3D | worldDirection () const |
| void | setWorldDirection (const QVector3D & worldDirection ) |
| void | worldDirectionChanged (const QVector3D & worldDirection ) |
| const QMetaObject | staticMetaObject |
Encapsulate a Directional Light object in a Qt 3D scene.
A directional light is a light source that behaves similar to sunlight. The light from a directional light hits all objects from the same direction and with the same intensity, regardless of where they are in the scene.
Specifies the world direction of the directional light
訪問函數:
| QVector3D | worldDirection () const |
| void | setWorldDirection (const QVector3D & worldDirection ) |
通知程序信號:
| void | worldDirectionChanged (const QVector3D & worldDirection ) |
構造新的 QDirectionalLight 采用指定 parent .