segmentedLineSdf

segmentedLineSdf

Keywords:
  • line
  • path
  • points
  • segments
sdf
segmentedLineSdf
RayTK
v0.40

Multi-segment line SDF.

The line is defined my a list of points, which are either defined by parameters or by CHOP channels.

Parameters

Name Description Regular Handling Read-Only Handling
Source

Where to get the point positions.

Baked Baked
  • Parameters: Points are based on the `Point 1, etc parameters.
  • CHOP: The points are based on the `Points CHOP`.
Radius

The thickness of the line segments.

Runtime Baked
Segments

The number of line segments. This controls how many parameters or CHOP samples are used.

Baked Baked
Close Path

Whether to add a line segment connecting the first and last points.

Baked Baked
Points

CHOP used for point positions, using the tx, ty, and tz channels

Point 1 Runtime Baked
Point 2 Runtime Baked
Point 3 Runtime Baked
Point 4 Runtime Baked
Point 5 Runtime Baked
Point 6 Runtime Baked
Point 7 Runtime Baked
Point 8 Runtime Baked

Inputs

  • Radius Field: (optional)
    • Coordinate Types: float vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: stepindex normstepindex stepinterp normoffset offset

Variables

  • stepindex:
  • normstepindex:
  • stepinterp:
  • normoffset:
  • offset: