blob: eaa6fb1da446f4636fce0af9a625982512b6fef9 [file] [log] [blame]
John Kessenich2f21fcc2015-06-17 16:15:09 +00001#version 120
2
3uniform float d;
4uniform vec4 bigColor, smallColor;
5uniform vec4 otherColor;
6
7varying float c;
8varying vec4 BaseColor;
9
10void main()
11{
12 vec4 color = BaseColor;
13 vec4 color2;
14
15 color2 = otherColor;
16
17 if (c > d)
18 color += bigColor;
19 else
20 color += smallColor;
21
22 gl_FragColor = color * color2;
23}