22 #ifndef TWP_LIGHTING_H 23 #define TWP_LIGHTING_H 26 #include "twp/spritesheet.h" 39 void setSpriteOffset(
const Math::Vector2d &offset);
42 void update(
const Lights &lights);
45 virtual void applyUniforms()
final;
48 Math::Vector2d _contentSize;
49 Math::Vector2d _spriteOffset;
50 Math::Vector2d _spritePosInSheet;
51 Math::Vector2d _spriteSizeRelToSheet;
55 int u_numberLights = 0;
56 float u_lightPos[3 * MAX_LIGHTS];
57 float u_coneDirection[2 * MAX_LIGHTS];
58 float u_coneCosineHalfConeAngle[MAX_LIGHTS];
59 float u_coneFalloff[MAX_LIGHTS];
60 float u_lightColor[3 * MAX_LIGHTS];
61 float u_brightness[MAX_LIGHTS];
62 float u_cutoffRadius[MAX_LIGHTS];
63 float u_halfRadius[MAX_LIGHTS];
66 bool _currentDebug =
false;
Definition: lighting.h:34
Definition: achievements_tables.h:27
Definition: spritesheet.h:37