extrudeLine

beta

Extrudes a 2D SDF cross-section into a 3D volume, like the extrude operator, but between two points.

The extrude operator goes along a selected axis, with a height center on the origin. Instead of doing that, this operator extrudes so that one side is centered at Point1 and the other end at Point2.

Parameters

Name Description Regular Handling Read-Only Handling
Point 1 Runtime Baked
Point 2 Runtime Baked

Inputs

  • Cross-Section SDF: (required) 2D SDF cross-section to extrude.
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: Sdf
    • Supports Variables: axispos normoffset
    • Supports Variables From Inputs: point1Field point2Field
  • Point 1 Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
  • Point 2 Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables From Inputs: point1Field

Variables

  • axispos:
  • normoffset: