ColorLightBase Class
Namespace: Stride.Rendering.LightsAssembly: Stride.Rendering.dll
Base implementation of IColorLight
System.Object →
ColorLightBase
Derived from ColorLightBase: DirectLightBase LightAmbient
[DataContract(Inherited = true)]
public abstract class ColorLightBase : IColorLight, ILight
| Name | Description | |
|---|---|---|
| Constructors | ||
| ColorLightBase() | ||
| Properties | ||
| Color | Gets or sets the light color. |
|
| Methods | ||
| ComputeColor(ColorSpace, Single) | Computes the color with intensity, result is in linear space. |
|
| Update(RenderLight) | ||
Constructors
ColorLightBase()
protected ColorLightBase()
Properties
Color
Gets or sets the light color.
[DataMember(-10)]
public IColorProvider Color { get; set; }
Property Value
| Type | Description |
|---|---|
| IColorProvider | The color. |
Methods
ComputeColor(ColorSpace, Single)
Computes the color with intensity, result is in linear space.
public Color3 ComputeColor(ColorSpace colorSpace, float intensity)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorSpace | colorSpace | |
| System.Single | intensity |
Returns
| Type | Description |
|---|---|
| Color3 | Gets the color of this light in linear space. |
Update(RenderLight)
public abstract bool Update(RenderLight light)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderLight | light |
Returns
| Type | Description |
|---|---|
| System.Boolean |