Table of Contents

Class Light

Namespace
TaleWorlds.Engine
Assembly
TaleWorlds.Engine.dll
[EngineClass("rglLight")]
public sealed class Light : GameEntityComponent
Inheritance
Light
Inherited Members

Properties

Frame

public MatrixFrame Frame { get; set; }

Property Value

MatrixFrame

Intensity

public float Intensity { get; set; }

Property Value

float

IsValid

public bool IsValid { get; }

Property Value

bool

LightColor

public Vec3 LightColor { get; set; }

Property Value

Vec3

Radius

public float Radius { get; set; }

Property Value

float

ShadowEnabled

public bool ShadowEnabled { get; set; }

Property Value

bool

Methods

CreatePointLight(float)

public static Light CreatePointLight(float lightRadius)

Parameters

lightRadius float

Returns

Light

Dispose()

public void Dispose()

~Light()

protected ~Light()

SetLightFlicker(float, float)

public void SetLightFlicker(float magnitude, float interval)

Parameters

magnitude float
interval float

SetShadowType(ShadowType)

public void SetShadowType(Light.ShadowType type)

Parameters

type Light.ShadowType

SetVisibility(bool)

public void SetVisibility(bool value)

Parameters

value bool

SetVolumetricProperties(bool, float)

public void SetVolumetricProperties(bool volumetricLightEnabled, float volumeParameters)

Parameters

volumetricLightEnabled bool
volumeParameters float

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).