capsuleSdf

capsuleSdf

Keywords:
  • capsule
  • line
  • points
  • segment

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
  • 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
  • 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

Variables

  • Normalized Offset (0..1):