Skip to content

Struct GpuLight

Namespace: Apogee.Rendering
Assembly: Apogee.Rendering.dll

public struct GpuLight

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Fields

ColorType

xyz: color times intensity; w: 0 for a point light, 1 for a spot light.

public Vector4 ColorType

Field Value

Vector4

DirectionCone

xyz: the direction a spot light shines; w: cosine of its outer cone angle.

public Vector4 DirectionCone

Field Value

Vector4

PositionRadius

xyz: world position; w: the radius beyond which the light is zero.

public Vector4 PositionRadius

Field Value

Vector4

Spot

x: 1 / (cos inner - cos outer); y: -cos outer * x.

public Vector4 Spot

Field Value

Vector4