Class ColorLightBase
Base implementation of IColorLight
[DataContract(Inherited = true)]
public abstract class ColorLightBase : IColorLight, ILight
- Inheritance
-
ColorLightBase
- Implements
- Derived
Constructors
ColorLightBase()
protected ColorLightBase()
Properties
Color
Gets or sets the light color.
[DataMember(-10)]
public IColorProvider Color { get; set; }
Property Value
- IColorProvider
The color.
Methods
ComputeColor(ColorSpace, float)
Computes the color with intensity, result is in linear space.
public Color3 ComputeColor(ColorSpace colorSpace, float intensity)
Parameters
colorSpace
ColorSpaceintensity
float
Returns
- Color3
Gets the color of this light in linear space.
Update(RenderLight)
public abstract bool Update(RenderLight light)
Parameters
light
RenderLight