Modular procedural terrain generator in C++