This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// By Matt Davis @mattdavisgames | |
/// Requires "SDF Toolkit Free" (or paid) by Catlike Coding (Jasper Flick) | |
/// Render using TextMeshPro/Distance Field SSD shader (res 512, gradient scale 52.2) (gradient scale = res * paddingRatio + 1) | |
/// | |
/// Original image must include a margin of ~10% (or paddingRatio) of the image resolution, to accomodate SDF gradient. | |
using UnityEditor; | |
using UnityEngine; | |
using CatlikeCoding.SDFToolkit; |