]> git.sesse.net Git - nageru/blob - resize_flow.frag
If needed, resize the flow up (bilinearly) to the final size at the end.
[nageru] / resize_flow.frag
1 #version 450 core
2
3 in vec2 tc;
4 out vec2 flow;
5
6 uniform sampler2D flow_tex;
7 uniform vec2 scale_factor;
8
9 void main()
10 {
11         flow = texture(flow_tex, tc).xy * scale_factor;
12 }