blob: 0d78671aa11a125fc2b8ebec2b811270f3d26299 [file] [log] [blame]
out vec4 sk_FragColor;
uniform vec4 colorGreen;
float scalar(float x, float y) {
x = length(x);
x = distance(x, y);
x = dot(x, y);
x = normalize(x);
return x;
}
vec2 vector(vec2 x, vec2 y) {
x = vec2(length(x));
x = vec2(distance(x, y));
x = vec2(dot(x, y));
x = normalize(x);
return x;
}
vec4 main() {
float x = scalar(1.0, 2.0);
vec2 y = vector(vec2(1.0, 2.0), vec2(3.0, 4.0));
return colorGreen;
}