Struct GorgonGpuLightData
Light data to pass to a GPU buffer.
Inherited Members
Namespace: Gorgon.Renderers.Data
Assembly: Gorgon.Graphics.Core.dll
Syntax
public readonly struct GorgonGpuLightData
Fields
| Edit this page View SourceEmpty
An empty light data structure.
Declaration
public static readonly GorgonGpuLightData Empty
Field Value
Type | Description |
---|---|
GorgonGpuLightData |
LightAttenuation
The attenuation values for a point light, these are all 0 for directional lights.
Declaration
public readonly Vector4 LightAttenuation
Field Value
Type | Description |
---|---|
Vector4 |
Remarks
The X value represents the constant attenuation value, the Y value represents the linear attenuation value, the Z value represents the quadratic attenuation value, and W represents the range of the light.
LightAttributes
Extra attributes for the light.
Declaration
public readonly Vector4 LightAttributes
Field Value
Type | Description |
---|---|
Vector4 |
Remarks
X = Specular Power, Y = Intensity, Z = specular intensity, W = Specular on/off
LightColor
The color for the light.
Declaration
public readonly GorgonColor LightColor
Field Value
Type | Description |
---|---|
GorgonColor |
PositionDirection
The position or direction of the light, depending on type.
Declaration
public readonly Vector4 PositionDirection
Field Value
Type | Description |
---|---|
Vector4 |
Remarks
XYZ = Position/Direction, W = Light type.
SizeInBytes
The number of bytes for this value type.
Declaration
public static readonly int SizeInBytes
Field Value
Type | Description |
---|---|
int |