381

Lighting the environment
Influencing Bounds Example Code

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

  • Or relative to a bounding leaf's coordinate system
    TransformGroup group = new TransformGroup( );
    BoundingLeaf leaf = new BoundingLeaf( bounds );
    group.addChild( leaf );
    . . .
    PointLight light = new PointLight( );
    light.setInfluencingBoundingLeaf( leaf );