blob: 6d0f7eb05f98a3557f1af04b82a35aa72994e606 [file] [log] [blame]
#version 320 es
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
precision highp float;
layout(location = 0) out vec4 fragColor;
layout(location = 0) uniform float a;
void main() {
fragColor = vec4(
// cos(0.0) = 1.0
acos(1.0),
// cos(1.0) = 0.54030230586
acos(a * 0.54030230586),
0.0,
1.0
);
}