blob: 7fccb94299685602aada4237ea0b59fc77613fe8 [file] [log] [blame]
uniform half4 colorGreen;
float scalar(float x, float y) {
x = length(x);
x = distance(x, y);
x = dot(x, y);
x = normalize(x);
return x;
}
float2 vector(float2 x, float2 y) {
x = length(x).xx;
x = distance(x, y).xx;
x = dot(x, y).xx;
x = normalize(x);
return x;
}
half4 main(float2 coords) {
float x = scalar(1, 2);
float2 y = vector(float2(1, 2), float2(3, 4));
return colorGreen;
}