Axiom.SceneManagers.Bsp.TextureLight.CalculateForSpotLight C# (CSharp) Method

CalculateForSpotLight() protected method

protected CalculateForSpotLight ( Plane plane, Vector3 vertices, Vector2 &texCoors, ColorEx &colors ) : bool
plane Axiom.Math.Plane
vertices Vector3
texCoors Vector2
colors Axiom.Core.ColorEx
return bool
		protected bool CalculateForSpotLight( Plane plane, Vector3[] vertices, out Vector2[] texCoors, out ColorEx[] colors )
		{
			texCoors = new Vector2[ vertices.Length ];
			colors = new ColorEx[ vertices.Length ];

			ColorEx lightCol = new ColorEx( textureColor.a,
				textureColor.r, textureColor.g, textureColor.b );

			for ( int i = 0; i < vertices.Length; i++ )
			{
				colors[ i ] = lightCol;
			}

			return true;
		}