bfc9be0f77
This will allow us to load these inputs for unit testing in `dm`. Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
29 lines
964 B
GLSL
29 lines
964 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
in vec2 h2;
|
|
in vec3 h3;
|
|
in vec4 h4;
|
|
in vec2 f2;
|
|
in vec3 f3;
|
|
in vec4 f4;
|
|
void main() {
|
|
sk_FragColor = outerProduct(f2, f2)[1].xyyy;
|
|
sk_FragColor = outerProduct(f3, f3)[2].xyzz;
|
|
sk_FragColor = outerProduct(f4, f4)[3];
|
|
sk_FragColor = outerProduct(f3, f2)[1].xyzz;
|
|
sk_FragColor = outerProduct(f2, f3)[2].xyyy;
|
|
sk_FragColor = outerProduct(f4, f2)[1];
|
|
sk_FragColor = outerProduct(f2, f4)[3].xyyy;
|
|
sk_FragColor = outerProduct(f4, f3)[2];
|
|
sk_FragColor = outerProduct(f3, f4)[3].xyzz;
|
|
sk_FragColor = outerProduct(h2, h2)[1].xyyy;
|
|
sk_FragColor = outerProduct(h3, h3)[2].xyzz;
|
|
sk_FragColor = outerProduct(h4, h4)[3];
|
|
sk_FragColor = outerProduct(h3, h2)[1].xyzz;
|
|
sk_FragColor = outerProduct(h2, h3)[2].xyyy;
|
|
sk_FragColor = outerProduct(h4, h2)[1];
|
|
sk_FragColor = outerProduct(h2, h4)[3].xyyy;
|
|
sk_FragColor = outerProduct(h4, h3)[2];
|
|
sk_FragColor = outerProduct(h3, h4)[3].xyzz;
|
|
}
|