John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 1 | |
2 | out vec4 sk_FragColor; | ||||
John Stiles | ecd7c22 | 2021-02-08 14:20:28 -0500 | [diff] [blame^] | 3 | uniform vec4 colorWhite; |
4 | uniform vec4 colorGreen; | ||||
5 | uniform vec4 colorRed; | ||||
6 | vec4 main() { | ||||
7 | vec2 x = colorWhite.xy; | ||||
8 | x = x; | ||||
9 | x = -x; | ||||
10 | return x == vec2(-1.0) ? colorGreen : colorRed; | ||||
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 11 | } |