• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform float testInput;
4uniform mat2 testMatrix2x2;
5uniform vec4 colorGreen;
6uniform vec4 colorRed;
7vec4 main() {
8    vec4 inputVal = vec4(testMatrix2x2) * vec4(1.0, 1.0, -1.0, -1.0);
9    uvec4 expectedB = uvec4(1065353216u, 1073741824u, 3225419776u, 3229614080u);
10    return ((inputVal.x == uintBitsToFloat(expectedB.x) && inputVal.xy == uintBitsToFloat(expectedB.xy)) && inputVal.xyz == uintBitsToFloat(expectedB.xyz)) && inputVal == uintBitsToFloat(expectedB) ? colorGreen : colorRed;
11}
12