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