Implement animated flash tiles in Tilemap
Flash tiles start with an alpha of 60, which ramps up to 120 in 16 frames and 4 steps, then ramps down again over the same period.
This commit is contained in:
parent
9e63fb6b64
commit
7a6c05bba0
7 changed files with 70 additions and 6 deletions
11
src/shader.h
11
src/shader.h
|
@ -176,6 +176,17 @@ private:
|
|||
GLint u_tone, u_color, u_flash, u_opacity;
|
||||
};
|
||||
|
||||
class FlashMapShader : public ShaderBase
|
||||
{
|
||||
public:
|
||||
FlashMapShader();
|
||||
|
||||
void setAlpha(float value);
|
||||
|
||||
private:
|
||||
GLint u_alpha;
|
||||
};
|
||||
|
||||
class HueShader : public ShaderBase
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue