Class LightSource
- Namespace
- AlphaFramework.World.Components
- Assembly
- AlphaFramework.World.dll
Represents a point light source.
public class LightSource : Render, ICloneable
- Inheritance
-
objectLightSource
- Implements
- Inherited Members
- Extension Methods
Properties
Attenuation
Factors describing the attenuation of light intensity over distance.
public Attenuation Attenuation { get; set; }
Property Value
Color
The color of this point light source.
[LuaHide]
public Color Color { get; set; }
Property Value
Remarks
Is not serialized/stored, ColorValue is used for that.
ColorValue
Used for XML serialization.
[LuaHide]
[Browsable(false)]
public XColor ColorValue { get; set; }
Property Value
- See Also
Methods
Clone()
Creates a deep copy of this instance.
public override Render Clone()
Returns
CloneFromTo(LightSource, LightSource)
Copies all members declared by LightSource from one instance to another.
protected static void CloneFromTo(LightSource from, LightSource to)
Parameters
fromLightSourcetoLightSource
CloneLightSource()
Creates a deep copy of this LightSource instance.
public LightSource CloneLightSource()
Returns
- LightSource
The new copy of the LightSource.