Multi-directional pixel sorting

I always liked the visual appeal that I feel when looking at pixel sorting effects. In this exploration, I wanted to have an effect sorting the pixels of an input in real time, in different possible directions. In that regard, I designed an algorithm that can accept a sort filter that dictates the direction in which the sort happens.

Vector field generated from truchet tiling

I described this technique in an article, source code is also available in the article.

Pixel distortions applied alongside the pixel sorting
Nice ever-going pixel sorting, quality of the output a bit dirty
Project available on Shadertoy, click to see the filter

Leave a Reply

Your email address will not be published. Required fields are marked *