Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
struct | ColorTriplet |
class | LightingState |
class | LightingSwipeData |
struct | RectArea |
Public Member Functions | |
LegacyLighting (Camera camera) | |
Vector3 | GetColor (int x, int y) |
void | Rebuild () |
void | AddLight (int x, int y, Vector3 color) |
void | ProcessArea (Rectangle area) |
void | Clear () |
Static Public Attributes | |
static int | RenderPhases = 4 |
Properties | |
int | Mode [get, set] |
bool | IsColorOrWhiteMode [get] |
Private Member Functions | |
void | TryUpdatingMapWithLight () |
void | UpdateLightToSkyColor (float tileR, float tileG, float tileB) |
void | ShiftUnProcessedDataOver (int maxLightArrayX, int maxLightArrayY) |
void | CopyFullyProcessedDataOver (int maxLightArrayX, int maxLightArrayY) |
void | PreRenderPhase () |
void | DoColors () |
void | doColors_Mode0_Swipe (int outerLoopStart, int outerLoopEnd, object context) |
void | doColors_Mode1_Swipe (int outerLoopStart, int outerLoopEnd, object context) |
void | doColors_Mode2_Swipe (int outerLoopStart, int outerLoopEnd, object context) |
void | doColors_Mode3_Swipe (int outerLoopStart, int outerLoopEnd, object context) |
Private Attributes | |
bool | _rgb = true |
int | _offScreenTiles2 = 35 |
float | _oldSkyColor |
float | _skyColor |
int | _requestedRectLeft |
int | _requestedRectRight |
int | _requestedRectTop |
int | _requestedRectBottom |
LightingState[][] | _states |
LightingState[][] | _axisFlipStates |
LightingSwipeData | _swipe |
LightingSwipeData[] | _threadSwipes |
int | _scrX |
int | _scrY |
int | _minX |
int | _maxX |
int | _minY |
int | _maxY |
Dictionary< Point16, ColorTriplet > | _tempLights |
int | _expandedRectLeft |
int | _expandedRectTop |
int | _expandedRectRight |
int | _expandedRectBottom |
float | _negLight = 0.04f |
float | _negLight2 = 0.16f |
float | _wetLightR = 0.16f |
float | _wetLightG = 0.16f |
float | _wetLightB = 0.16f |
float | _honeyLightR = 0.16f |
float | _honeyLightG = 0.16f |
float | _honeyLightB = 0.16f |
float | _blueWave = 1f |
int | _blueDir = 1 |
RectArea | _minBoundArea |
RectArea | _requestedArea |
RectArea | _expandedArea |
RectArea | _offScreenTiles2ExpandedArea |
TileLightScanner | _tileScanner = new TileLightScanner() |
readonly Camera | _camera |
LightMap | _lightMap = new LightMap() |
Static Private Attributes | |
const int | MAX_TEMP_LIGHTS = 2000 |
static FastRandom | _swipeRandom = FastRandom.CreateWithRandomSeed() |
Definition at line 11 of file LegacyLighting.cs.