Hello everyone, I’ve been recently trying to recreate this line-hatching/smearing post process effect by Pedro Borges (Reference 1, Reference 2).
So far I’ve managed to get the velocity buffer into a render target that stores the directions of each pixel relative to the screen but here’s my problem, how can I transform this direction field into UVs so that I can use it to map a texture that aligns to those directions?
This is how it currently looks in a rotating sphere (the vector field range goes from -1 to 1, red means direction from left to right, green means from botton to top and blue from objects approaching or moving away from the screen)

In this example I’ve used a simple rotating sphere but my intention is to use it on an animation with more complex movements.
Thanks in advance!