John Kessenich | 2f21fcc | 2015-06-17 16:15:09 +0000 | [diff] [blame] | 1 | #version 120 |
2 | |||||
3 | uniform float d; | ||||
4 | uniform vec4 bigColor, smallColor; | ||||
5 | uniform vec4 otherColor; | ||||
6 | |||||
7 | varying float c; | ||||
8 | varying vec4 BaseColor; | ||||
9 | |||||
10 | void 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 | } |