Struct ForwardLightStruct
Struct with aligned data for sending a light to the shader.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public struct ForwardLightStruct
  Fields
Color
The color.
Declaration
public Vector3 Color
  Field Value
| Type | Description | 
|---|---|
| Vector3 | 
DebugMode
Enabled debug mode, 0 false and 1 true.
Declaration
public int DebugMode
  Field Value
| Type | Description | 
|---|---|
| int | 
Direction
Light diffuse color.
Declaration
public Vector3 Direction
  Field Value
| Type | Description | 
|---|---|
| Vector3 | 
Extra
Extra information.
Declaration
public Vector4 Extra
  Field Value
| Type | Description | 
|---|---|
| Vector4 | 
Falloff
Light fallof (1 / falloff ^ 2).
Declaration
public float Falloff
  Field Value
| Type | Description | 
|---|---|
| float | 
Intensity
The light intensity.
Declaration
public float Intensity
  Field Value
| Type | Description | 
|---|---|
| float | 
Left
Gets the light left vector.
Declaration
public Vector3 Left
  Field Value
| Type | Description | 
|---|---|
| Vector3 | 
LightType
Gets the light type.
Declaration
public LightType LightType
  Field Value
| Type | Description | 
|---|---|
| LightType | 
Position
Light position.
Declaration
public Vector3 Position
  Field Value
| Type | Description | 
|---|---|
| Vector3 | 
Radius
Gets the light radius.
Declaration
public float Radius
  Field Value
| Type | Description | 
|---|---|
| float | 
Scale
The scale data.
Declaration
public Vector2 Scale
  Field Value
| Type | Description | 
|---|---|
| Vector2 | 
ShadowBias
The Shadow map Bias.
Declaration
public float ShadowBias
  Field Value
| Type | Description | 
|---|---|
| float | 
ShadowMapIndex
The shadow map index.
Declaration
public int ShadowMapIndex
  Field Value
| Type | Description | 
|---|---|
| int | 
ShadowMapResolution
The shadow map resolution.
Declaration
public int ShadowMapResolution
  Field Value
| Type | Description | 
|---|---|
| int | 
ShadowOpacity
Shadow opacity in range 0.0 - 1.0.
Declaration
public float ShadowOpacity
  Field Value
| Type | Description | 
|---|---|
| float | 
ShadowProjectionIndex
The shadow projection array index.
Declaration
public int ShadowProjectionIndex
  Field Value
| Type | Description | 
|---|---|
| int |