GLSL Velocity / Motion Vector Map

Is there anyone who has implemented a Velocity Map /Motion Vector for Touch?
It should be like the Normal Map TOP but for the velocity / motion vector of
an animated Geometry coding movement into colors:

movement in x = R (-range,range)
movement in y = G (-range,range)

Best, Robert