fixed tabbed banner, shader setting

This commit is contained in:
langolierz
2019-08-03 15:50:31 +00:00
parent 638bde828f
commit 50fc94cccb
8 changed files with 68 additions and 30 deletions

View File

@@ -5,25 +5,26 @@
precision mediump float;
#endif
uniform float u_time;
uniform float ftime;
uniform vec4 fparams
uniform float u_x0;
uniform float u_x1;
void main() {
vec3 colour = vec3(0.0,0.0,0.0);
if(u_x0 < (1.0 / 3.0)){
if(fparams[0] < (1.0 / 3.0)){
colour[0] = 1.0;
}
else if(u_x0 > (2.0 / 3.0)){
else if(fparams[0] > (2.0 / 3.0)){
colour[1] = 1.0;
}
else{
colour[2] = 1.0;
}
if(u_x1 < (1.0 / 3.0)){
if(fparams[1] < (1.0 / 3.0)){
colour[1] = 1.0;
}
else if(u_x1 > (2.0 / 3.0)){
else if(fparams[1] > (2.0 / 3.0)){
colour[2] = 1.0;
}
else{