2021-02-20 13:00:43 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
2021-03-17 14:58:16 +00:00
|
|
|
float get() {
|
|
|
|
{
|
|
|
|
return abs(2.0);
|
2021-03-15 22:08:38 +00:00
|
|
|
}
|
2021-03-17 14:58:16 +00:00
|
|
|
return abs(5.0);
|
|
|
|
}
|
|
|
|
vec4 main() {
|
|
|
|
float result = get();
|
2021-02-20 13:00:43 +00:00
|
|
|
return result == 2.0 ? colorGreen : colorRed;
|
|
|
|
}
|