MARTINI is a new library from the prolific Vladimir Agafonkin, providing a method for generating RTIN meshes from terrain data. And of course — being an Agafonkin library — it has a focus on performance, to the point where it can be used to generate 3D terrain in real-time in a Web browser.
The linked Observable notebook provides detailed insight into the library and how it works. The interactive examples are a perfect way to demonstrate the theory.