skia2/tests/sksl/intrinsics/Cross.glsl

14 lines
325 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec2 ah;
uniform vec2 bh;
uniform vec2 af;
uniform vec2 bf;
void main() {
sk_FragColor.x = ah.x * bh.y - ah.y * bh.x;
sk_FragColor.y = af.x * bf.y - af.y * bf.x;
sk_FragColor.z = 12.0;
sk_FragColor.xyz = vec3(-8.0, -8.0, 12.0);
sk_FragColor.yzw = vec3(9.0, -18.0, -9.0);
}