Terrain · interface
TerrainMaterialsOptions
Explained in Terrain.
interface TerrainMaterialsOptionsimport type { TerrainMaterialsOptions } from '@driftengine/terrain';Properties
| Name | Type | Description |
|---|---|---|
materialsreadonly | readonly TerrainMaterial[] | The materials being blended. At least one. |
widthreadonly | number | Samples of the weight map across x. It need not match the heightfield's own resolution. |
depthreadonly | number | Samples across z. |
weightsreadonly | ArrayLike<number> | width * depth * materials.length weights, row-major with the material running fastest.MoreThey need not sum to anything: |