M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.Light Class Reference

Inherits TaleWorlds.Engine.GameEntityComponent.

Public Types

enum  ShadowType {
  NoShadow ,
  StaticShadow ,
  DynamicShadow ,
  Count
}
 

Public Member Functions

void SetShadowType (ShadowType type)
 
void SetLightFlicker (float magnitude, float interval)
 
void SetVolumetricProperties (bool volumetricLightEnabled, float volumeParameters)
 
void Dispose ()
 
void SetVisibility (bool value)
 
- Public Member Functions inherited from TaleWorlds.Engine.GameEntityComponent
GameEntity GetEntity ()
 
virtual MetaMesh GetFirstMetaMesh ()
 

Static Public Member Functions

static Light CreatePointLight (float lightRadius)
 

Properties

bool IsValid [get]
 
MatrixFrame Frame [get, set]
 
Vec3 LightColor [get, set]
 
float Intensity [get, set]
 
float Radius [get, set]
 
bool ShadowEnabled [get, set]
 

Member Enumeration Documentation

◆ ShadowType

Enumerator
NoShadow 
StaticShadow 
DynamicShadow 
Count 

Member Function Documentation

◆ CreatePointLight()

static Light TaleWorlds.Engine.Light.CreatePointLight ( float  lightRadius)
static

◆ SetShadowType()

void TaleWorlds.Engine.Light.SetShadowType ( ShadowType  type)

◆ SetLightFlicker()

void TaleWorlds.Engine.Light.SetLightFlicker ( float  magnitude,
float  interval 
)

◆ SetVolumetricProperties()

void TaleWorlds.Engine.Light.SetVolumetricProperties ( bool  volumetricLightEnabled,
float  volumeParameters 
)

◆ Dispose()

void TaleWorlds.Engine.Light.Dispose ( )

◆ SetVisibility()

void TaleWorlds.Engine.Light.SetVisibility ( bool  value)

Property Documentation

◆ IsValid

bool TaleWorlds.Engine.Light.IsValid
get

◆ Frame

MatrixFrame TaleWorlds.Engine.Light.Frame
getset

◆ LightColor

Vec3 TaleWorlds.Engine.Light.LightColor
getset

◆ Intensity

float TaleWorlds.Engine.Light.Intensity
getset

◆ Radius

float TaleWorlds.Engine.Light.Radius
getset

◆ ShadowEnabled

bool TaleWorlds.Engine.Light.ShadowEnabled
getset