264

Lighting the environment
Influencing bounds example code

  • Set bounds relative to the light's coordinate system
    PointLight myLight = new PointLight( );
    myLight.setInfluencingBounds( myBounds );

  • Or relative to a bounding leaf's coordinate system
    TransformGroup myGroup = new TransformGroup( );
    BoundingLeaf myLeaf = new BoundingLeaf( myBounds );
    myGroup.addChild( myLeaf );
    . . .
    PointLight myLight = new PointLight( );
    myLight.setInfluencingBoundingLeaf( myLeaf );