I've a few unreleased tests about shaders that may help other people
working on this subject. 

For now, I only release this water shader demo, since other tests are 
heavily based on the official "shader_test.c", and it will only
duplicate (almost) the same code everywhere. I'll try to clean all this one day.

Xfennec.
#define BONUS_TTL		20
#define BONUSROLL_TIME		4
#define BONUSBLINK_TIME		2
#define REPLACE_TIME		3

typedef struct Team
{
GLfloat color[3];
char name[16];
} Team;

Team teams[4];

#define TEAM_COL(n)  teams[n].color[0],teams[n].color[1],teams[n].color[2]
#define TEAM_COL2(n) teams[n].color[0]-0.2,teams[n].color[1]-0.2,teams[n].color[2]-0.2

void conf_init(void)
{
strcpy(teams[0].name,"Red Team");
strcpy(teams[1].name,"Green Team");
strcpy(teams[2].name,"Blue Team");
strcpy(teams[3].name,"Yellow Team");

teams[0].color[0]=0.9;
teams[0].color[1]=0.2;
teams[0].color[2]=0.2;

teams[1].color[0]=0.2;
teams[1].color[1]=0.9;
teams[1].color[2]=0.2;

teams[2].color[0]=0.2;
teams[2].color[1]=0.2;
teams[2].color[2]=0.9;

teams[3].color[0]=0.9;
teams[3].color[1]=0.9;
teams[3].color[2]=0.2;

in_game=0;
}