Documentation / Node reference / code nodes

code/Fwidth

Outputs how fast a value changes from one pixel to the next.

Math

Outputs how much the input changes between neighbouring pixels on screen. Use it to soften an edge by about one pixel at any zoom. It runs on the GPU only.

Parameters

Name Type What it does
method UInt8 SUM_OF_ABS · GRADIENT_LENGTH How the horizontal and vertical changes are combined.
value_Float Float Value to measure.
value_Vector2 Vector2 Value to measure.
value_Vector3 Vector3 Value to measure.
value_Vector4 Vector4 Value to measure.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.