Terrain to SDF
Gets the SDF of a terrain as a numeric value. Positive values indicate that the current point is outside the terrain, negative values indicate that the current point is inside the terrain, and zero indicates the surface of the terrain.
Inputs:
terrain
: The terrain.
Outputs:
sdf
: The SDF value.