The example @prisoner849 is also in the Collection of examples from discourse.threejs.org
ProjectionOnTerrain