• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 testInputs;
4uniform vec4 colorGreen;
5uniform vec4 colorRed;
6vec4 main() {
7    ivec4 intValues = ivec4(testInputs * 100.0);
8    ivec4 intGreen = ivec4(colorGreen * 100.0);
9    ivec4 expectedA = ivec4(-125, 0, 50, 50);
10    ivec4 expectedB = ivec4(-125, 0, 0, 100);
11    return ((((((min(intValues.x, 50) == expectedA.x && min(intValues.xy, 50) == expectedA.xy) && min(intValues.xyz, 50) == expectedA.xyz) && min(intValues, 50) == expectedA) && min(intValues.x, intGreen.x) == expectedB.x) && min(intValues.xy, intGreen.xy) == expectedB.xy) && min(intValues.xyz, intGreen.xyz) == expectedB.xyz) && min(intValues, intGreen) == expectedB ? colorGreen : colorRed;
12}
13