skia2/tests/sksl/workarounds/NegatedAtanStandaloneSettings.glsl

8 lines
139 B
Plaintext
Raw Normal View History

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