blob: 0ca8ab798d7d96de892e539b619dc232663e252d [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(
/* sin(0.0) = 0.0 */
sin(0.0),
// sin(1.57079632679) = sin(pi / 2.0) = 1.0
sin(a * 1.57079632679), 0.0, 1.0);
}