
vesicaSdf2d
sdf2d
vesicaSdf2d
RayTK
v0.36
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
- Coordinate Types:
-
Distance Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types: