Table of Contents

Class LightSource

Namespace
AlphaFramework.World.Components
Assembly
AlphaFramework.World.dll

Represents a point light source.

public class LightSource : Render, ICloneable
Inheritance
object
LightSource
Implements
Inherited Members
Extension Methods

Properties

Attenuation

Factors describing the attenuation of light intensity over distance.

public Attenuation Attenuation { get; set; }

Property Value

Attenuation

Color

The color of this point light source.

[LuaHide]
public Color Color { get; set; }

Property Value

Color

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

XColor
See Also

Methods

Clone()

Creates a deep copy of this instance.

public override Render Clone()

Returns

Render

CloneFromTo(LightSource, LightSource)

Copies all members declared by LightSource from one instance to another.

protected static void CloneFromTo(LightSource from, LightSource to)

Parameters

from LightSource
to LightSource

CloneLightSource()

Creates a deep copy of this LightSource instance.

public LightSource CloneLightSource()

Returns

LightSource

The new copy of the LightSource.

See Also