blob: 8b2032d99360ee389ddce0b384b3c2b3a488b985 [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() {
mat2 zeros = mat2(0.0);
mat3 ones = mat3(a);
mat4 identity = mat4(
a, 0.0, 0.0, 0.0,
0.0, a, 0.0, 0.0,
0.0, 0.0, a, 0.0,
0.0, 0.0, 0.0, a);
fragColor = vec4(zeros[1][1], ones[2][2], identity[3][1], identity[3][3]);
}