slice
filter
slice
RayTK
v0.36
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
-
SDF
: (required)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
Sdf
- Coordinate Types:
-
Offset Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types:
-
Thickness Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
- Coordinate Types: