Awesome
SDFTextureGenerator
Signed Distance Field (SDF) texture generator for Unity using the Jump Flooding Algorithm (JFA) implemented in a ComputeShader.
Updated with Unity 6000.0.21f1.
There are three procedures in this repo:
- MaskToSdfTextureProcedure (pixels).
- Mask3DToSdfTexture3DProcedure (voxels).
- Texture3DToTextureSliceProcedure (voxels to pixels).
References
- Shadertoy implementation and Explanation of JFA by Demofox