An ambient light source object. Ambient light is that light
that seems to come from all directions. The AmbientLight object
has the same attributes as a Light node, including color,
influencing bounds, scopes, and
a flag indicating whether this light source is on or off.
Ambient reflections do not depend on the orientation or
position of a surface.
Ambient light has only an ambient reflection component.
It does not have diffuse or specular reflection components.
For more information on Java 3D lighting, see the class description
for Light.
Constructor Summary
public
AmbientLight() Constructs and initializes an ambient light using default parameters.
public
AmbientLight(Color3f color) Constructs and initializes an ambient light using the specified
parameters.
public
AmbientLight(boolean lightOn, Color3f color) Constructs and initializes an ambient light using the specified
parameters.
Constructs and initializes an ambient light using the specified
parameters.
Parameters: color - the color of the light source.
AmbientLight
public AmbientLight(boolean lightOn, Color3f color)(Code)
Constructs and initializes an ambient light using the specified
parameters.
Parameters: lightOn - flag indicating whether this light is on or off. Parameters: color - the color of the light source.
Used to create a new instance of the node. This routine is called
by cloneTree to duplicate the current node.
Parameters: forceDuplicate - when set to true, causes theduplicateOnCloneTree flag to be ignored. Whenfalse, the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also:Node.cloneTree See Also:Node.cloneNode See Also:Node.duplicateNode See Also:NodeComponent.setDuplicateOnCloneTree