Axiom.Core.SceneNode.FindLights C# (CSharp) Method

FindLights() public method

Allows retrieval of the nearest lights to the center of this SceneNode.
This method allows a list of lights, ordered by proximity to the center of this SceneNode, to be retrieved. Multiple access to this method when neither the node nor the lights have moved will result in the same list being returned without recalculation. Can be useful when implementing IRenderable.Lights.
public FindLights ( float radius ) : LightList
radius float Parameter to specify lights intersecting a given radius of /// this SceneNode's centre
return LightList
		public virtual LightList FindLights( float radius )
		{
			// TEMP FIX
			// If a scene node is static and lights have moved, light list won't change
			// can't use a simple global boolean flag since this is only called for
			// visible nodes, so temporarily visible nodes will not be updated
			// Since this is only called for visible nodes, skip the check for now
			//if(lightListDirty) {
			if ( creator != null )
				creator.PopulateLightList( this.DerivedPosition, radius, lightList );
			else
				lightList.Clear();

			lightListDirty = false;
			//}

			return lightList;
		}