segmentedLineSdf
Keywords:
- line
- path
- points
- segments
sdf
segmentedLineSdf
RayTK
v0.42
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 |
| |||
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 | ||
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
- Coordinate Types:
Variables
-
Segment Index
: -
Normalized Segment Index
: -
Interpolated Segment Index
: -
Normalized Distance Offset
: -
Distance Offset
: