skia2/tests/sksl/intrinsics/golden/FaceForward.glsl
John Stiles ad0571f54a Add support for scalar faceforward intrinsic in Metal.
Change-Id: I8eae896f5a859b59a1ba0b29dc95d5aa070c12ae
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343102
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-12-11 15:29:50 +00:00

13 lines
193 B
GLSL

out vec4 sk_FragColor;
in float a;
in float b;
in float c;
in vec4 d;
in vec4 e;
in vec4 f;
void main() {
sk_FragColor.x = faceforward(a, b, c);
sk_FragColor = faceforward(d, e, f);
}