[][src]Module sdfu::ops

Operations you can perform to combine two SDFs.

Structs

ExponentialSmoothMin

Takes the minimum of two values, smoothing between them when they are close.

HardMin

Takes the absolute minimum of two values and returns them directly. A standard min function.

Intersection

Get the intersection of two SDFs.

PolySmoothMin

Takes the minimum of two values, smoothing between them when they are close.

Subtraction

Get the subtracion of two SDFs. Note that this operation is not commutative, i.e. Subtraction::new(a, b) =/= Subtraction::new(b, a).

Union

The union of two SDFs.

Traits

MinFunction

A function which can get the minimum between two SDFs. This is useful because sometimes we want to be able to interpolate between the minimums for 'soft blending' between two SDFs.