Vizard 7 » Command Index » Vizard modules » vizfx » <vizfx>.addPointLight
7.6

<vizfx>.addPointLight

Create a point light

<vizfx>.addPointLight(  
texture = None  
**kw  
)  
texture = None
Can be a cube map <texture> object that is projected from the 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 point light that casts light in all directions.

Return Value

<node3d:light> object

Example

# Add white point light 
light = vizfx.addPointLight(color=viz.WHITE, pos=(0,2,0))

See also

<viz>.addLight
<vizfx>.addDirectionalLight
<vizfx>.addSpotLight