slice

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

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Axis

The axis along which to take the slice.

Runtime Semi-Baked
  • X:
  • Y:
  • Z:
Offset

Shifts the center position of the slice along the axis.

Runtime Baked
Thickness

Thickness of the slice.

Runtime Baked
Enable Smoothing

Whether to smooth the transition on each side of the slice down to a size of zero.

Runtime Semi-Baked
Smooth Radius

The amount of smoothing distance.

Runtime Baked
Enable Mirror

When enabled, a second slice is added, mirrored across the origin along the axis.

Runtime Semi-Baked
Operation Semi-Baked Semi-Baked
  • Intersect:
  • Difference:

Inputs

  • SDF: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: Sdf
  • Offset Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: inputOp1
  • Thickness Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: inputOp1 offsetField