Normal from Distance

Constructs a normal value from a multi-channel distance field texture.
This node constructs a cross at the center UV coordinate, sampling in 4 directions to obtain the inclination of the shape at that point in the X and Y axes. It then constructs a normal from that inclination.
Inputs
| Name | Type | Description |
|---|---|---|
| UV | Vector 2 | Center coordinate in the field. |
| Field | Texture 2D | The multi-channel distance field to be sampled. |
| Width | Float | How far from the center in each direction to sample. |
| Distance Limit | Float | How far into the shape should the normals stretch into. |
Outputs
| Name | Type | Description |
|---|---|---|
| Normal | Vector 3 | A normalized vector pointing away from the surface. |