内容表

上一话题

Qt3DRender.QDepthTest

下一话题

Qt3DRender.QDispatchCompute

Qt3DRender.QDirectionalLight

Encapsulate a Directional Light object in a Qt 3D scene. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QDirectionalLight

概要

信号

详细描述

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.

class PySide2.Qt3DRender.Qt3DRender. QDirectionalLight ( [ parent=None ] )
param parent

QNode

构造新 QDirectionalLight with the specified parent .

PySide2.Qt3DRender.Qt3DRender.QDirectionalLight. setWorldDirection ( worldDirection )
参数

worldDirection QVector3D

另请参阅

worldDirection()

PySide2.Qt3DRender.Qt3DRender.QDirectionalLight. worldDirection ( )
返回类型

QVector3D

PySide2.Qt3DRender.Qt3DRender.QDirectionalLight. worldDirectionChanged ( worldDirection )
参数

worldDirection QVector3D