TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AddLight() [3/5]

static void Terraria.Lighting.AddLight ( Vector2 position,
float r,
float g,
float b )
inlinestatic

Adds light to the world at the specified coordinates.

This overload takes in world coordinates and float values typically ranging from 0 to 1. Values greater than 1 will cause the light to propagate farther.

Parameters
position
r
g
b

Definition at line 197 of file Lighting.cs.

198 {
199 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
200 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
201 AddLight((int)(position.X / 16f), (int)(position.Y / 16f), r, g, b);
202 }
static void AddLight(Vector2 position, Vector3 rgb)
Adds light to the world at the specified coordinates.
Definition Lighting.cs:177

References Terraria.Lighting.AddLight().

+ Here is the call graph for this function: