FANDOM


The information in this article is for Terraria v1.0.6.1.

Very definitely handles the lighting in the game. More info coming soon!

Stars

Placeholder picture

Read More


PropertiesEdit

Name Type Description
None N/A N/A

Static PropertiesEdit

Name Type Description
color float[,] 2D array of float values
lightCounter int ???
lightPasses int ???
lightSkip int ???
resize bool ???

MethodsEdit

Method Name Description
None N/A

Static MethodsEdit

Method Name Description
addLight()
public static void addLight(int i, int j, float Lightness)
{
}

I and J are respectively x and y co-ordinates to add the light at. Lightness can be broken into three floats for R, G, and B values respectively. Example: Lighting.addLight(0,0,1.28f,1.28f,1.28f);

  • Returns no value
Brightness()
public static float Brightness(int x, int y)
{
}

X and Y are co-ordinates at which the method will check the brightness level.

  • Returns Brightness Level as float
GetBlackness()
public static Color GetBlackness(int x, int y)
{
}

???

  • ???: ???
GetColor()
public static Color GetColor(int x, int y, Color oldColor)
{
}

???

  • ???: ???
GetColor()
public static Color GetColor(int x, int y)
{
}

???

  • ???: ???
LightingX()
public static int LightingX(int lightX)
{
}

???

  • ???: ???
LightingY()
public static int LightingY(int lightY)
{
}

???

  • ???: ???
LightTiles()
public static void LightTiles(
   int firstX,
   int lastX,
   int firstY,
   int lastY
   )
{
}

Description goes here

  • Returns no value

NotesEdit

None yet

Classes in Terraria

Chest | Cloud | Collision | Dust | Gore | Item | Lighting | Liquid | Main | NPC | Player | Projectile | Recipe | Sign | Star | WorldGen

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.