1uniform half4 colorGreen;
2
3float scalar(float x, float y) {
4    x = length(x);
5    x = distance(x, y);
6    x = dot(x, y);
7    x = normalize(x);
8    return x;
9}
10
11float2 vector(float2 x, float2 y) {
12    x = length(x).xx;
13    x = distance(x, y).xx;
14    x = dot(x, y).xx;
15    x = normalize(x);
16    return x;
17}
18
19half4 main(float2 coords) {
20    float x = scalar(1, 2);
21    float2 y = vector(float2(1, 2), float2(3, 4));
22    return colorGreen;
23}
24