2021-05-25 22:08:31 +00:00
|
|
|
uniform half4 input;
|
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
|
|
|
|
half4 main(float2 coords) {
|
|
|
|
const half4 constVal = half4(3, 0, 4, 12);
|
|
|
|
half4 expected = half4(3, 3, 5, 13);
|
|
|
|
|
|
|
|
return (length(input.x) == expected.x &&
|
|
|
|
length(input.xy) == expected.y &&
|
|
|
|
length(input.xyz) == expected.z &&
|
|
|
|
length(input.xyzw) == expected.w &&
|
|
|
|
length(constVal.x) == expected.x &&
|
|
|
|
length(constVal.xy) == expected.y &&
|
|
|
|
length(constVal.xyz) == expected.z &&
|
|
|
|
length(constVal.xyzw) == expected.w) ? colorGreen : colorRed;
|
2020-12-30 19:53:17 +00:00
|
|
|
}
|