• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec2 ah;
4uniform vec2 bh;
5uniform vec2 af;
6uniform vec2 bf;
7float cross_hh2h2(vec2 a, vec2 b) {
8    return a.x * b.y - a.y * b.x;
9}
10float cross_ff2f2(vec2 a, vec2 b) {
11    return a.x * b.y - a.y * b.x;
12}
13void main() {
14    sk_FragColor.x = cross_hh2h2(ah, bh);
15    sk_FragColor.y = cross_ff2f2(af, bf);
16}
17