Terrain

Grassworks is designed around plane-based terrain meshes: ground-style surfaces that can be represented as a height field when viewed from above.

Supported terrain model

Grassworks supports plane-based terrain meshes: Three.js terrain objects representing ground-style surfaces that can be described from above. The terrain can use any Three.js material. Spherical terrain and terrain with multiple vertically layered surfaces are outside this model.

Terrain must be in its final world-space position, rotation and scale before initialization and must be visible when Grassworks captures it. If it changes later, use refreshTerrain().