Struct LightStruct
Struct with aligned data for sending light to the shader.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct LightStruct
Fields
Color
Diffuse color of the light.
Declaration
public Vector3 Color
Field Value
Type | Description |
---|---|
Vector3 |
ConeAngle
The angle of the cone.
Declaration
public float ConeAngle
Field Value
Type | Description |
---|---|
float |
Direction
Represents the direction.
Declaration
public Vector3 Direction
Field Value
Type | Description |
---|---|
Vector3 |
Intensity
Sports exponent.
Declaration
public float Intensity
Field Value
Type | Description |
---|---|
float |
LightRange
Range of the light.
Declaration
public float LightRange
Field Value
Type | Description |
---|---|
float |
Position
Position of the light.
Declaration
public Vector3 Position
Field Value
Type | Description |
---|---|
Vector3 |
World
The instance of the world.
Declaration
public Matrix4x4 World
Field Value
Type | Description |
---|---|
Matrix4x4 |