Skip to content

Instantly share code, notes, and snippets.

View danielstenson's full-sized avatar

Daniel Stenson danielstenson

View GitHub Profile
@danielstenson
danielstenson / README.md
Last active December 17, 2023 16:16
ES6 Compatible Dynamic Terrain Babylon Extension

ES6 Compatible Dynamic Terrain Babylon Extension

How to use

  • 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);