Operation Soft Shape

Operation Soft Shape

Operation Soft Shape

Inputs

float Sdf
float Softness | default 0.1

Behaviour

Turns the signed distance field into a mask with softly feathered edges. Outside of the sdf will be fully black inside will be white and the border transition softly between.

Properties

ESoftShapeFunction SoftShapeFunction | default Smoothstep

With the SoftShapeFunction property one may choose which function to use in order to generate the soft shape.

  • Linear: the cheapest option, provides a linear gradient over the edge
  • Smoothstep: good results over all, provides a smooth gradient over the edge.
  • ExpStep: a faster, yet smooth falloff than Smoothstep
  • LogStep: an extremely fast falloff

The following figures are at Softness of 0.01.

Linear
Linear HardShapeFunction
SmoothStep
SmoothStep SoftShapeFunction
Exp Step
Exp Step SoftShapeFunction
Log Step
Log Step SoftShapeFunction