Skip to main content Link Menu Expand (external link) Document Search Copy Copied
capsuleSdf

capsuleSdf

Keywords:
  • capsule
  • line
  • points
  • segment

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
  • Endpoint 2 Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Radius Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float

Variables

  • normoffset: