blob: 62674d91d0e62e2b455979e96bb37b15c85517c9 [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;
// clamp(x, a, b) is equivalent to min(max(x, a), b)
void main() {
fragColor = vec4(
0.0,
clamp(10.0, 0.0, a),
0.0,
clamp(-1.0, a, 10.0)
);
}