capsuleSdf
Keywords:
- capsule
- line
- points
- segment
sdf
capsuleSdf
RayTK
v0.42
A line or cylinder with rounded ends, between two points.
With a small Radius
, this can be used to create a line segment.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Translate | Moves the center of the capsule. | Runtime | Baked |
End Point 1 | Distance of the first end from the center position. | Runtime | Baked |
End Point 2 | Distance of the second end from the center position. | Runtime | Baked |
Radius | The thickness of the capsule. | Runtime | Baked |
Inputs
-
Endpoint 1 Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Coordinate Types:
-
Endpoint 2 Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Supports Variables From Inputs:
endpoint1
- Coordinate Types:
-
Radius Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
normoffset
- Supports Variables From Inputs:
endpoint1
endpoint2
- Coordinate Types:
Variables
-
Normalized Offset (0..1)
: