
capsuleSdf
Keywords:
- capsule
- line
- points
- segment
sdf
capsuleSdf
RayTK
v0.36
A cylinder with rounded ends, between two points.
With a small Radius
, this can be used to create a line segment.
Parameters
-
Translate
: Moves the center of the capsule. -
End Point 1
: Distance of the first end from the center position. -
End Point 2
: Distance of the second end from the center position. -
Radius
: The thickness of the capsule.
Inputs
-
Endpoint 1 Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
vec4
- Coordinate Types:
-
Endpoint 2 Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
vec4
- Coordinate Types:
-
Radius Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
Variables
-
normoffset
: