tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Graphics.Light.LegacyLighting Class Reference

Inherits Terraria.Graphics.Light.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 Terraria.Graphics.Light.LegacyLighting.AddLight ( int  x,
int  y,
Vector3  color 
)

◆ Clear()

void Terraria.Graphics.Light.LegacyLighting.Clear ( )

◆ GetColor()

Vector3 Terraria.Graphics.Light.LegacyLighting.GetColor ( int  x,
int  y 
)

◆ ProcessArea()

void Terraria.Graphics.Light.LegacyLighting.ProcessArea ( Rectangle  area)

◆ Rebuild()

void Terraria.Graphics.Light.LegacyLighting.Rebuild ( )