summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/always-discard2.frag
blob: 4d9e957f888b6f783de7d2d975ce5ae3b5d9e728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#version 110
varying vec2 tex_coord;

void main (void)
{
    vec4 white = vec4(1.0);
    vec4 black = vec4(0.2);
    vec4 color = white;

    // First, cut out our circle
    float x = tex_coord.x*2.0 - 1.0;
    float y = tex_coord.y*2.0 - 1.0;

    discard;


    gl_FragColor = color;

}