Atlas Engine
API Referenceaurora

TerrainGenerator

Base class for a height function that can be applied to terrain.

Module: aurora

Base class for a height function that can be applied to terrain.

Declaration

export abstract class TerrainGenerator { ... }

Methods

generateHeight

Samples the procedural terrain height at the supplied coordinates.

abstract generateHeight(x: number, y: number): number;

applyTo

applyTo(terrain: Terrain): void;

On this page