SDF

Efficient Distance transform in a multipass GLSL shader, that generates an SDF from any TOP.

The shader is based on Thomas Diewald’s PixelFlow processing library.
github.com/diwi/PixelFlow/

[video]https://vimeo.com/253734553/0bf5b3e4a4[/video]
*visual not included

=]
SDF.tox (2.52 KB)

1 Like

A revised version that also returns negative values for the areas inside the input shape.
SDF.tox (3.06 KB)

4 Likes

This is super handy, thanks for uploading this!

mental! thx for sharing!