Class PhotometricDirectionalLight
This class represent all properties for a sun light.
Inheritance
PhotometricDirectionalLight
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class PhotometricDirectionalLight : DirectionalLight, IDependencyObject
Constructors
PhotometricDirectionalLight()
Initializes a new instance of the PhotometricDirectionalLight class.
Declaration
public PhotometricDirectionalLight()
Properties
Color
Gets or sets the light color.
Declaration
[RenderProperty(AttachToValue = false, AttachToTag = 1)]
public override Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the diffuse. |
Overrides
ColorByTemperature
Gets or sets a value indicating whether the light temperature is specified by temperature.
Declaration
[RenderProperty(Tag = 1)]
public bool ColorByTemperature { get; set; }
Property Value
Type | Description |
---|---|
bool |
Illuminance
Gets or sets the directional light illuminance (Lux).
Declaration
[RenderProperty(CustomPropertyName = "Illuminance (Lux)")]
public float Illuminance { get; set; }
Property Value
Type | Description |
---|---|
float |
Intensity
Gets or sets the light intensity.
Declaration
public override float Intensity { get; set; }
Property Value
Type | Description |
---|---|
float |
Overrides
Temperature
Gets or sets the light temperature in Kelvin (K).
Declaration
[RenderProperty(AttachToValue = true, AttachToTag = 1)]
public float Temperature { get; set; }
Property Value
Type | Description |
---|---|
float |