aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/const-vec-scalar-02.frag
blob: a5f665daa51da8d5f6192f6095ac8ce04137cd5c (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 vec4 c1 = vec4(0.5, -0.5, 0.5, -0.5);
   const vec4 c2 = 1.0 - c1;
   const vec4 c3 = c2 - 0.5;
   gl_FragColor = c3;
}