Class that defines a light. A light controls the lighting for the
rendered object and works in a similar way to Camera.
|
|
__init__(self,
scene,
viewport=0)
Initialise the light. |
|
|
|
|
__setupLight(self,
scene)
Set up the light and associate it with the renderer. |
|
|
|
Boolean
|
_isModified(self)
Return whether the Light has been modified. |
|
|
|
|
_render(self,
scene)
Render the light. |
|
|
|
|
setAngle(self,
elevation=0,
azimuth=0)
An alternative to set the position and focal point of the light by
using the elevation and azimuth. |
|
|
|
|
setColor(self,
color)
Set the light color. |
|
|
|
|
|
|
|
setIntensity(self,
intensity)
Set the intensity (brightness) of the light. |
|
|
|
|
setPosition(self,
position)
Set the position of the light. |
|
|