Axiom.SceneManagers.Bsp.BspSceneManager.FindShadowCastersForLight C# (CSharp) Метод

FindShadowCastersForLight() защищенный Метод

protected FindShadowCastersForLight ( Light light, Camera camera ) : IList
light Axiom.Core.Light
camera Axiom.Core.Camera
Результат IList
		protected override IList FindShadowCastersForLight( Light light, Camera camera )
		{
			// objectsForRendering was filled at ProcessVisibleLeaf which is called
			// during FindVisibleObjects

			IList casters = base.FindShadowCastersForLight( light, camera );

			for ( int i = 0; i < casters.Count; i++ )
			{
				if ( !objectsForRendering.ContainsKey( ( (MovableObject)casters[ i ] ).Name ) )
				{
					// this shadow caster is not visible, remove it
					casters.RemoveAt( i );
					i--;
				}
			}

			return casters;
		}