SDF Creation - nkdtr/A2SSupport GitHub Wiki

A2S Version 1.12 provides an option to create SDF(Signed Distance Field) for sprites.

image
-None : No SDF
-Distane : Euclidean distance
-Manhattan : Manhattan distance

Resulting texture is like this:
image
(You need to disable "A" channel to see this)
-R channel:Signed Distance(in pixels | positive=outer, negative=inner)
-GB channel:Direction(normalized) from the closest point

The use is up to you, but for example:
-Wide outline (with gradation)
-Aura-like effect

To use this feature, a material with the parameter “SDF” is required.
image
Created SDF texture is automatically passed into this parameter.