Details
Fading one image into another and making those colors dance!
Pixels in each image are sorted by saturation, keeping it´s position in the order array, and it´s original position in the image. That way, the first value in each buffer gives us position of the darkest point in each image. The second value, the second darkest, etc. With that is easy to mix source and targt in the vertex shader of the particles.
Inspired by this tweet by Joe Williamson.
Built with three.js.
Code available on GitHub.
Close