skia2/tests/sksl/workarounds/NegatedAtan.glsl

8 lines
157 B
Plaintext
Raw Normal View History

#version 400
out vec4 sk_FragColor;
uniform float unknownInput;
void main() {
vec2 x = vec2(unknownInput);
sk_FragColor.x = atan(x.x, -1.0 * x.y);
}