]> git.sesse.net Git - nageru/blob - futatabi/gray.frag
Log a warning when we kill a client that is not keeping up.
[nageru] / futatabi / gray.frag
1 #version 450 core
2
3 in vec3 tc;
4 out vec4 gray;
5
6 uniform sampler2DArray tex;
7
8 void main()
9 {
10         vec4 color = texture(tex, tc);
11         gray.rgb = vec3(dot(color.rgb, vec3(0.2126f, 0.7152f, 0.0722f)));  // Rec. 709.
12         gray.a = color.a;
13 }