tModLoader v2024.03
A mod to make and play Terraria mods
LegacyLighting Class Reference

Inherits ILightingEngine.

Classes

struct  RectArea
 

Public Member Functions

 LegacyLighting (Camera camera)
 
void AddLight (int x, int y, Vector3 color)
 
void Clear ()
 
Vector3 GetColor (int x, int y)
 
void ProcessArea (Rectangle area)
 
void Rebuild ()
 
void AddLight (int x, int y, Vector3 color)
 
void Clear ()
 
Vector3 GetColor (int x, int y)
 
void ProcessArea (Rectangle area)
 
void Rebuild ()
 

Static Public Attributes

static int RenderPhases = 4
 

Properties

bool IsColorOrWhiteMode [get]
 
int Mode [get, set]
 

Member Function Documentation

◆ AddLight()

void LegacyLighting.AddLight ( int  x,
int  y,
Vector3  color 
)

Implements ILightingEngine.

◆ Clear()

void LegacyLighting.Clear ( )

Implements ILightingEngine.

◆ GetColor()

Vector3 LegacyLighting.GetColor ( int  x,
int  y 
)

Implements ILightingEngine.

◆ ProcessArea()

void LegacyLighting.ProcessArea ( Rectangle  area)

Implements ILightingEngine.

◆ Rebuild()

void LegacyLighting.Rebuild ( )

Implements ILightingEngine.