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

<vizfx>.addSpotLight

Create a spot light

<vizfx>.addSpotLight(  
texture = None  
**kw  
)  
texture = None
Can be a <texture> object that is projected from the spot light position. The light color is multiplied against the color in the texture sample.
**kw
Additional keyword arguments to pass to <viz>.addLight.

Remarks

Creates a spot light that focuses light in a specific direction.

Return Value

<node3d:light> object

Example

# Add a yellow spot light 
light = vizfx.addSpotLight(euler=(0,45,0), pos=(0,3,0), color=viz.YELLOW)

See also

<viz>.addLight
<vizfx>.addDirectionalLight
<vizfx>.addPointLight