Types of Lights

Java 3D provides four types of lights defined in the Light class

All lights share common attributes:

An on/off enable state

A color

A bounding volume and scope controlling the range of shapes they illuminate

Method Default
Light() enable flag : true
color : white (1,1,1)
scope : empty (universe scope)
influencing bounds : null
influencing bounding leaf : null
Light(boolean lightOn, Color3f color)
Light(Color3f color)
void setEnable( boolean OnOff ) true
void setColor( Color3f color ) 1.0, 1.0, 1.0