public void AddToRenderQueue( Camera cam, RenderQueue queue, bool onlyShadowCasters, VisibleObjectsBoundsInfo visibleBounds )
{
foreach ( KeyValuePair<string, MovableObject> pair in objectsByName )
{
pair.Value.NotifyCurrentCamera( cam );
if ( pair.Value.IsVisible && ( !onlyShadowCasters || pair.Value.CastShadows ) )
{
pair.Value.UpdateRenderQueue( queue );
if ( !visibleBounds.aabb.IsNull )
{
visibleBounds.Merge( pair.Value.GetWorldBoundingBox( true ), pair.Value.GetWorldBoundingSphere( true ), cam );
}
}
}
}