• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 testInputs;
4uniform vec4 colorGreen;
5uniform vec4 colorRed;
6uniform vec4 colorWhite;
7vec4 main() {
8    vec4 expectedA = vec4(0.75, 0.0, 0.75, 0.25);
9    vec4 expectedB = vec4(0.25, 0.0, 0.75, 1.0);
10    return ((((((((((((((mod(testInputs.x, 1.0) == expectedA.x && mod(testInputs.xy, 1.0) == expectedA.xy) && mod(testInputs.xyz, 1.0) == expectedA.xyz) && mod(testInputs, 1.0) == expectedA) && 0.75 == expectedA.x) && vec2(0.75, 0.0) == expectedA.xy) && vec3(0.75, 0.0, 0.75) == expectedA.xyz) && vec4(0.75, 0.0, 0.75, 0.25) == expectedA) && mod(testInputs.x, colorWhite.x) == expectedA.x) && mod(testInputs.xy, colorWhite.xy) == expectedA.xy) && mod(testInputs.xyz, colorWhite.xyz) == expectedA.xyz) && mod(testInputs, colorWhite) == expectedA) && 0.25 == expectedB.x) && vec2(0.25, 0.0) == expectedB.xy) && vec3(0.25, 0.0, 0.75) == expectedB.xyz) && vec4(0.25, 0.0, 0.75, 1.0) == expectedB ? colorGreen : colorRed;
11}
12