OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
LightmapBuilder.cpp File Reference
#include "LightmapBuilder.h"
#include "Engine/Engine.h"
#include "Engine/Graphics/LightsStack.h"
#include "Engine/Graphics/Outdoor.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/ClippingFunctions.h"
#include "Engine/Graphics/Weather.h"
#include "Engine/OurMath.h"
#include "Engine/Party.h"
#include "Library/Color/ColorTable.h"

Functions

void DrawLightsDebugOutlines (char bit_one_for_list1__bit_two_for_list2)
 
Color GetActorTintColor (int max_dimm, int min_dimm, float distance, int bNoLight, const RenderBillboard *pBillboard)
 
int GetLightLevelAtPoint (unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z)
 
int _43F55F_get_billboard_light_level (const RenderBillboard *a1, int uBaseLightLevel)
 

Variables

LightsStack_StationaryLight_pStationaryLightsStack = nullptr
 
LightsStack_MobileLight_pMobileLightsStack = nullptr
 

Function Documentation

◆ _43F55F_get_billboard_light_level()

int _43F55F_get_billboard_light_level ( const RenderBillboard a1,
int  uBaseLightLevel 
)
Original binary offset:
0x0043F55F.
Parameters
*a1Pointer to billboard to check.
uBaseLightLevelBase light dimming value (0-31).
Returns
Billboard dimming value (0-31) with lights applied.

◆ DrawLightsDebugOutlines()

void DrawLightsDebugOutlines ( char  bit_one_for_list1__bit_two_for_list2)

◆ GetActorTintColor()

Color GetActorTintColor ( int  max_dimm,
int  min_dimm,
float  distance,
int  bNoLight,
const RenderBillboard pBillboard 
)
Parameters
max_dimmMaximum dimming level allowed (0-31). 31 * 8 ~ 255.
min_dimmMinimum dimming level allowed (0-31).
distanceDepth distance to billboard.
bNoLightNo light dimming.
pBillboardPointer to the billboard to test against or Nullptr.
Returns
Return 32bit colour ARGB.

◆ GetLightLevelAtPoint()

int GetLightLevelAtPoint ( unsigned int  uBaseLightLevel,
int  uSectorID,
float  x,
float  y,
float  z 
)
Original binary offset:
0x0043F5C8.
Parameters
uBaseLightLevelStarting dimming level at point (0-31).
uSectorIDSector ID if indoors or 0.
x,y,zCo-ords of point.
Returns
Dimming level (0-31) with lights effect added.

Variable Documentation

◆ pMobileLightsStack

LightsStack_MobileLight_* pMobileLightsStack = nullptr

◆ pStationaryLightsStack

LightsStack_StationaryLight_* pStationaryLightsStack = nullptr