threejs-worldgen
    Preparing search index...

    Function bakeMPMHeights

    • Terrain heights at the grid's node columns, relative to origin[1] (what the GPU and the reference collide with). -1e30 everywhere without a height function; non-finite heights count as no ground.

      Parameters

      • height: MPMHeightFn | null
      • o: Pick<MPMOptions, "resolution" | "cellSize" | "origin">
      • out: Float32Array = ...

      Returns Float32Array