
simpleDiff
Combines two SDFs using the difference operator.
Produces the area of the first shape minus any areas overlapped by the second (or vice versa).
Parameters
-
Enable
: -
Swap Order
: Swaps the two inputs, subtracting the first from the second.
Inputs
-
SDF 1
: (required) The first SDF, which has the second removed from it (unless `Swaporder` is used).- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
Sdf
- Coordinate Types:
-
SDF 2
: (required) The second SDF, which is removed from the first (unless `Swaporder` is used).- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
Sdf
- Coordinate Types: