Table of Contents

Class ColorLightBase

Namespace
Stride.Rendering.Lights
Assembly
Stride.Rendering.dll

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 ColorSpace
intensity float

Returns

Color3

Gets the color of this light in linear space.

Update(RenderLight)

public abstract bool Update(RenderLight light)

Parameters

light RenderLight

Returns

bool