本页内容

DirectionalLight QML Type

在Qt 3D 场景中封装一个“定向光源”对象。更多内容...

Import Statement: import Qt3D.Render 2.12
In C++: QDirectionalLight
Inherits:

Light

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

定向光是一种行为方式类似于阳光的光源。无论场景中物体位于何处,定向光发出的光都会从同一方向以相同的强度照射到所有物体上。

属性文档

worldDirection : vector3d

指定定向光的世界方向。

注意: 此属性的确切含义 和用法取决于具体材质的实现方式。

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