skia2/tests/sksl/shared/golden/GeometricIntrinsics.glsl

20 lines
444 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
void main() {
float _1_x = 1.0;
_1_x = length(1.0);
_1_x = distance(_1_x, 2.0);
_1_x = dot(_1_x, 2.0);
_1_x = normalize(_1_x);
float x = _1_x;
vec2 _3_x = vec2(1.0, 2.0);
_3_x = vec2(length(vec2(1.0, 2.0)));
_3_x = vec2(distance(_3_x, vec2(3.0, 4.0)));
_3_x = vec2(dot(_3_x, vec2(3.0, 4.0)));
_3_x = normalize(_3_x);
vec2 y = _3_x;
sk_FragColor = vec4(x, y, 1.0);
}