Axiom.Demos.Water.AddLight C# (CSharp) Méthode

AddLight() private méthode

private AddLight ( string name, Vector3 pos, ColorEx color, LightType type ) : Light
name string
pos Vector3
color Axiom.Core.ColorEx
type LightType
Résultat Axiom.Core.Light
		private Light AddLight( string name, Vector3 pos, ColorEx color, LightType type )
		{
			Light l = scene.CreateLight( name );
			l.Position = pos;
			l.Type = type;
			l.Diffuse = color;
			l.SetAttenuation( 1000000f, 0f, 0, 0.0000001f ); // Make lights go a long way
			Billboard lightBoard = lightSet.CreateBillboard( pos, color );

			return l;
		}