QDirectionalLight Class
class Qt3DRender::QDirectionalLightEncapsulate a Directional Light object in a Qt 3D scene. More...
Header: | #include <QDirectionalLight> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | DirectionalLight |
Inherits: | Qt3DRender::QAbstractLight |
This class was introduced in Qt 5.7.
Public Functions
QDirectionalLight(Qt3DCore::QNode *parent = nullptr) |
Detailed Description
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.
Member Function Documentation
QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
Constructs a new QDirectionalLight with the specified parent.