2020-12-09 23:00:47 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
2021-08-20 14:10:02 +00:00
|
|
|
uniform float testInput;
|
|
|
|
uniform mat2 testMatrix2x2;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
|
|
|
vec4 main() {
|
2021-09-30 16:00:09 +00:00
|
|
|
vec4 inputVal = vec4(testMatrix2x2) * vec4(1.0, 1.0, -1.0, -1.0);
|
2021-08-20 14:10:02 +00:00
|
|
|
const uvec4 expectedB = uvec4(1065353216u, 1073741824u, 3225419776u, 3229614080u);
|
2021-09-30 16:00:09 +00:00
|
|
|
return ((floatBitsToUint(inputVal.x) == 1065353216u && floatBitsToUint(inputVal.xy) == uvec2(1065353216u, 1073741824u)) && floatBitsToUint(inputVal.xyz) == uvec3(1065353216u, 1073741824u, 3225419776u)) && floatBitsToUint(inputVal) == expectedB ? colorGreen : colorRed;
|
2020-12-09 23:00:47 +00:00
|
|
|
}
|