aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/const-matrix-multiply-01.frag
blob: 4eade7ccd8946552473742716a77329d314d963d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// [config]
// expect_result: pass
// glsl_version: 1.10
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]

void main()
{
   const mat2 c1 = mat2(2.0);
   const mat2 c2 = mat2(0.5);
   const mat2 id = c1 * c2;
   gl_FragColor = vec4(0.0, id[0].x, 0.0, id[1].y);
}