2021-02-20 13:00:43 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
2021-03-22 15:43:11 +00:00
|
|
|
float get_f() {
|
2021-03-17 14:58:16 +00:00
|
|
|
{
|
|
|
|
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() {
|
2021-03-22 15:43:11 +00:00
|
|
|
float result = get_f();
|
2021-02-20 13:00:43 +00:00
|
|
|
return result == 2.0 ? colorGreen : colorRed;
|
|
|
|
}
|