Discrete distancefields

Discrete distancefields are generated from meshes. The result is a 3D texture that describes distance values in a sampled volume. This volume can be displayed using sphere tracing without rendering the original triangle mesh.

Discrete distancefields integrate seamlessly into the rest of the framework and can be treated like a usual distancefield, which means that all CSG operations and the like are possible with them.