- Place the
babylon.dynamicTerrain_modular.ts
file inside the src/externals/DynamicTerrain folder. - In your script that you'd like to generate the terrain from, import the module with:
import { DynamicTerrain } from "../externals/DynamicTerrain/babylon.dynamicTerrain_modular";
- And use it like such:
terrain = new DynamicTerrain("t", params, scene);