]> git.sesse.net Git - nageru/blob - futatabi/hole_fill.frag
Log a warning when we kill a client that is not keeping up.
[nageru] / futatabi / hole_fill.frag
1 #version 450 core
2
3 in vec2 tc;
4 out vec2 out_flow;
5
6 uniform sampler2D tex;
7
8 void main()
9 {
10         vec2 flow = texture(tex, tc).xy;
11         if (flow.x > 100.0f) {
12                 // Don't copy unset flows around.
13                 discard;
14         }
15         out_flow = flow;
16 }