Vizard 7 » Command Index » Vizard objects » node3d » <node3d:light>.direction
7.6

<node3d:light>.direction

Set the direction of the light is pointing

<node3d:light>.direction(  
x  
y  
z  
)  
x
y
z

Remarks

Sets direction which the light points to. This direction is relative to the position of the light.
The direction has no affect if spread is set to 180 or when the w parameter of position is 0.

Return Value

None

Example

light = viz.addLight()
light.direction( 0, -1, 0 )

See also

<node3d:light>.position
<node3d:light>.spotexponent
<node3d:light>.spread