Class PhotometricLightProperties
This class manages the photometric properties of a light.
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class PhotometricLightProperties
Constructors
PhotometricLightProperties(Light, bool, float)
Initializes a new instance of the PhotometricLightProperties class.
Declaration
public PhotometricLightProperties(Light light, bool colorByTemperature = true, float temperature = 6500)
Parameters
| Type | Name | Description |
|---|---|---|
| Light | light | The associated light. |
| bool | colorByTemperature | Indicates if the color is set by temperature. |
| float | temperature | The color temperature. |
Properties
ColorByTemperature
Gets or sets a value indicating whether the color is set by temperature.
Declaration
public bool ColorByTemperature { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Temperature
Gets or sets the light temperature in Kelvin (K).
Declaration
public float Temperature { get; set; }
Property Value
| Type | Description |
|---|---|
| float |