terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.Lighting Class Reference
+ Collaboration diagram for Terraria.Lighting:

Public Member Functions

 Lighting ()
 

Static Public Member Functions

static void ResetLighting ()
 
static void Initialize (bool resized=false)
 
static void LightTiles (int firstX, int lastX, int firstY, int lastY)
 
static float Brightness (int x, int y)
 
static Vector3 GetSubLight (Vector2 position)
 
static void AddLight (Vector2 position, Vector3 rgb)
 
static void AddLight (Vector2 position, float r, float g, float b)
 
static void AddLight (int i, int j, int torchID, float lightAmount)
 
static void AddLight (Vector2 position, int torchID)
 
static void AddLight (int i, int j, float r, float g, float b)
 
static void NextLightMode ()
 
static void Clear ()
 
static Color GetColor (Point tileCoords)
 
static Color GetColor (Point tileCoords, Color originalColor)
 
static Color GetColor (int x, int y, Color oldColor)
 
static Color GetColorClamped (int x, int y, Color oldColor)
 
static Vector3 GetColorVector3 (int x, int y)
 
static LightMap GetLightMap (out Rectangle lightMapRegion)
 
static Rectangle GetScanRegion ()
 
static Color GetColor (int x, int y)
 
static void GetColor9Slice (int centerX, int centerY, ref Color[] slices)
 
static void GetColor9Slice (int x, int y, ref Vector3[] slices)
 
static void GetCornerColors (int centerX, int centerY, out VertexColors vertices, float scale=1f)
 
static void GetColor4Slice (int centerX, int centerY, ref Color[] slices)
 
static void GetColor4Slice (int x, int y, ref Vector3[] slices)
 

Static Public Attributes

static int OffScreenTiles
 

Properties

static LightMode _mode [get, set]
 
static LightingEngine NewEngine [get, set]
 
static LegacyLighting LegacyEngine [get, set]
 
static ILightingEngine _activeEngine [get, set]
 
static float GlobalBrightness [get, set]
 
static LightMode Mode [get, set]
 
static bool NotRetro [get, set]
 
static bool UsingNewLighting [get, set]
 
static bool UpdateEveryFrame [get, set]
 

Static Private Member Functions

static void UpdateGlobalBrightness ()
 
static Lighting ()
 

Static Private Attributes

const float DEFAULT_GLOBAL_BRIGHTNESS = 1.2f
 
const float BLIND_GLOBAL_BRIGHTNESS = 1f
 
static float< GlobalBrightnessk__BackingField
 

Detailed Description

Definition at line 27 of file Lighting.cs.


The documentation for this class was generated from the following file: