cecarlsen / SDFTextureGenerator

Signed Distance Field (SDF) texture generator for Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Signed Distance Field (SDF) texture generator for Unity.

License:MIT License


Languages

Language:C# 93.7%Language:ShaderLab 6.3%