Skip to main content Link Menu Expand (external link) Document Search Copy Copied
vesicaSdf2d

vesicaSdf2d

SDF for a 2d vesica, which is a shape based on the overlap between two circles.

See Wikipedia for details. See ShaderToy for an example.

Parameters

  • Radius: The radius of each circle.
  • Distance: The distance between the circles. Higher values will produce thinner shapes since the circles will overlap less. Lower values will produce rounder shapes, eventually reaching a full circle when the distance is 0.

Inputs

  • Radius Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Distance Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float