Skip to main content Link Menu Expand (external link) Document Search Copy Copied

slice

Removes all of an SDF except for a slice in space.

Parameters

  • Enable:
  • Axis: The axis along which to take the slice.
    • X:
    • Y:
    • Z:
  • Offset: Shifts the center position of the slice along the axis.
  • Thickness: Thickness of the slice.
  • 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.
  • Enable Mirror: When enabled, a second slice is added, mirrored across the origin along the axis.
  • Operation:
    • Intersect:
    • Difference:

Inputs

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