Encapsulates the creation, deletion and manipulation of an ambient light.
#include <AlAmbientLight.h> class AlAmbientLight : public AlLight AlAmbientLight(); virtual ~AlAmbientLight(); virtual AlObject* copyWrapper() const; statusCode create(); AlObjectType type() const; double shadeFactor() const; double intensity() const; statusCode setShadeFactor( double ); statusCode setIntensity( double );
An ambient light is similar to a point light, except that only a portion of the illumination comes from the point. The remainder of the illumination comes from all directions and lights everything uniformly.
(For more information on lights in general, see the Class Description of the AlLight class.)
double AlAmbientLight::shadeFactor() const
Returns the light’s shade factor. Valid shade factors range from 0.0 to 1.0. Shade factor defines the omnidirectionality of the light. Set to 0.0, ambient light will come from all directions and surfaces will not show edge definition. Set to 1.0, the ambient light comes solely from the position of the light and objects will show definite edge contrast. If the light is not valid then -1 is returned.
statusCode AlAmbientLight::setShadeFactor( double newShadeFactor)
Sets the light’s shade factor. Valid shade factors range from 0.0 to 1.0. Shade factor defines the omnidirectionality of the light. Set to 0.0, ambient light will come from all directions and surfaces will show not edge definition. Set to 1.0, the ambient light comes solely from the position of the light and objects will show definite edge contrast.
statusCode AlAmbientLight::setIntensity( double newIntensity )