Struct MeshRenderLightConfiguration
Mesh render stage allows multiple directional and spotlight lights The lighting model is Phong -> per-pixel lighting
Inherited Members
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct MeshRenderLightConfiguration
Properties
AmbientCoefficient
Strength of ambient light contribution (scales light colour * surface colour)
Declaration
public float AmbientCoefficient { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Attenuation
Spotlight only - the attenuation factor (decresing intensity with distance)
Declaration
public float Attenuation { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Colour
The light's colour
Declaration
public Vector3 Colour { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
ConeAngle
Spotlight only
Declaration
public float ConeAngle { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
ConeDirection
Spotlight only - the direction the light is pointing
Declaration
public Vector3 ConeDirection { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
LightType
Light type - directional or spotlight
Declaration
public LightType LightType { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| LightType |
Position
Directional - Represents light direction unit vector Spotlight - Represents the light's position in space
Declaration
public Vector3 Position { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |