Show / Hide Table of Contents

Struct MeshRenderLightConfiguration

Mesh render stage allows multiple directional and spotlight lights The lighting model is Phong -> per-pixel lighting

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 { get; set; }
Property Value
Type Description
System.Single

Attenuation

Spotlight only - the attenuation factor (decresing intensity with distance)

Declaration
public float Attenuation { get; set; }
Property Value
Type Description
System.Single

Colour

The light's colour

Declaration
public Vector3 Colour { get; set; }
Property Value
Type Description
Vector3

ConeAngle

Spotlight only

Declaration
public float ConeAngle { get; set; }
Property Value
Type Description
System.Single

ConeDirection

Spotlight only - the direction the light is pointing

Declaration
public Vector3 ConeDirection { get; set; }
Property Value
Type Description
Vector3

LightType

Light type - directional or spotlight

Declaration
public LightType LightType { 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 { get; set; }
Property Value
Type Description
Vector3
In This Article
Back to top yak2D - Alex Paterson