vesicaSdf2d
sdf2d
vesicaSdf2d
RayTK
v0.42
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
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Radius | The radius of each circle. | Runtime | Baked |
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. | Runtime | Baked |
Inputs
-
Radius Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Coordinate Types:
-
Distance Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables From Inputs:
radiusField
- Coordinate Types: