Operation Hard Shape

Operation Hard Shape

Operation Hardshape Node

Inputs

float SDF

Behaviour

Converts the signed distance field to a mask, where outside of the sdf is black and inside of the sdf is white. The Transition is a hard but antialiased line.

Properties

EHardShapeFunction HardShapeFunction | default Smoothstep

With the HardShapeFunction property one may choose which function to use in order to generate the hard shape.

  • Smoothstep: generally the cheapest and good results over all.
  • MaxDerivative: more expensive but provides better results for very thin shapes
  • MaxUVDerivative: requires the base space used for the SDF but has the best results for very thin shapes. However it may break when the sdf is not exact anymore.
SmoothStep
SmoothStep HardShapeFunction
Max Derivative
Max Derivative HardShapeFunction
Max UV Derivative
Max UV Derivative HardShapeFunction