Drawing with Distance Fields
summary
Shows how distance fields power effects like burning paper, ink strokes and procedural eyes by using ray marching and simple pixel shaders. Demonstrations use Unity (2D textures and a volume inside a cube) and ShaderToy math; Unreal’s whole-scene 3D distance texture is contrasted. Practical details: encode edge distance into a channel, drive color with clamp/smoothstep, combine noise for variation, watch out for imprecise SDF approximations hurting performance even when visuals look fine. signed distance fields and example assets are provided.
AI-written summary · about
