W3cubDocs

/Qt

DirectionalLight QML Type

Encapsulate a Directional Light object in a Qt 3D scene. More...

Import Statement: import Qt3D.Render
Since: Qt 5.7
Instantiates: QDirectionalLight

Properties

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.

Property Documentation

worldDirection : vector3d

Specifies the world direction of the directional light.

Note: The exact meaning and use of this property is up to the material implementation.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qml-qt3d-render-directionallight.html