]> git.sesse.net Git - nageru/blobdiff - prewarp.frag
In the variational refinement, change the flow unit from normalized coordinates to...
[nageru] / prewarp.frag
index 1bf99f72a308e32d35dc85eb12dd424afc85ae5b..b9645bf2c805de1a77593c977928164d409b03cb 100644 (file)
@@ -4,8 +4,10 @@
 
 in vec2 tc;
 out float I, I_t;
+out vec2 normalized_flow;
 
 uniform sampler2D image0_tex, image1_tex, flow_tex;
+uniform vec2 image_size;
 
 void main()
 {
@@ -17,4 +19,5 @@ void main()
 
        I = 0.5f * (I_0 + I_w);
        I_t = I_w - I_0;
+       normalized_flow = flow.xy * image_size;
 }