sampleAlongLine

beta
convert
sampleAlongLine
RayTK
v0.40

Samples a 2D/3D input along a single line, producing a 1D function.

It’s similar to crossSection but with a single line instead of a 2D plane.

Parameters

Name Description Regular Handling Read-Only Handling
Center

Position in 2D/3D space where the center of the line sits. When a position of 0 is passed to this operator, it will check its input at the Center location.

Runtime Baked
Direction

Vector indicating which direction the line goes from the center.

Runtime Baked
Rotate

Rotation for the sampling line.

Runtime Baked

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Ray Light Particle