- return texelFetch(surface_in, coord, 0).x-texelFetch(bottom_in, coord, 0).x;
+ float surface = texelFetch(surface_in, coord, 0).x;
+ float bottom = texelFetch(bottom_in, coord, 0).x;
+ return vec2(surface, surface-bottom);
+}
+
+vec4 get_data(ivec2 coord)
+{
+ vec2 velocity = texelFetch(velocity_in, coord, 0).xy;
+ return vec4(velocity, get_depth(coord));