World Building

Heightfield Explorer

What this shows

Click to lock the pointer, then use WASD and the mouse to explore the terrain.

This example needs a Canvas2D-capable browser.

Loading scene…

Loading scene…

Key API excerpt

import * as EASEL from "@xsyetopz/easel";

const terrain = new EASEL.Geometry();
terrain.setPositions(heightField);
terrain.index = gridIndices;
terrain.computeVertexNormals();