SDFTextureGenerator icon indicating copy to clipboard operation
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)

Splash

References