Vizard 7 » Command Index » Vizard modules » vizfx » <vizfx>.addDirectionalLight
7.7

<vizfx>.addDirectionalLight

Create a directional light

<vizfx>.addDirectionalLight(  
**kw  
)  
**kw
Additional keyword arguments to pass to <viz>.addLight.

Remarks

Creates a directional light that casts light in a single direction. The direction is controlled by the lights rotation.

Return Value

<node3d:light> object

Example

# Add white point light pointing down
light = vizfx.addDirectionalLight(color=viz.WHITE, euler=(0,90,0))

See also

<viz>.addLight
<vizfx>.addPointLight
<vizfx>.addSpotLight