knife

knife

Keywords:
  • crop
  • knife
  • slice
filter
knife
RayTK
v0.36

Cuts off an SDF along a plane.

Parameters

  • Enable:
  • Keep Side: Which side of the cut to keep.
    • Above Plane:
    • Below Plane:
  • Offset: Shifts the cut plane along the axis that it faces.
  • Rotate Plane: Rotate the cut plane in XYZ. When in 2D, only the Z rotation is used.
  • Direction:
    • X:
    • Y:
    • Z:
  • Enable Smoothing: Whether to smooth the transition on each side of the slice down to a size of zero.
  • Smooth Radius: The amount of smoothing distance.

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf
  • Offset Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float