Struct Light¶
Namespace: Apogee.Rendering
Assembly: Apogee.Rendering.dll
A light at the entity's
public struct Light
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Fields¶
Color¶
The color, in linear 0 to 1.
public Vector3 Color
Field Value¶
InnerCone¶
A spot light's cone, in radians: fully lit inside
public float InnerCone
Field Value¶
Intensity¶
Candela for point and spot lights, lux for the sun.
public float Intensity
Field Value¶
Kind¶
A
public byte Kind
Field Value¶
OuterCone¶
public float OuterCone
Field Value¶
Range¶
How far a point or spot light reaches; 0 lets the renderer find where it falls below a faint threshold.
public float Range
Field Value¶
Methods¶
Point(Vector3, float, float)¶
public static Light Point(Vector3 color, float intensity, float range = 0)
Parameters¶
color Vector3
intensity float
range float
Returns¶
Sun(Vector3, float)¶
public static Light Sun(Vector3 color, float illuminance)
Parameters¶
color Vector3
illuminance float