跳转到内容

TerrainSamples

此内容尚不支持你的语言。

Defined in: sdk/src/terrain/provider.ts:35

What a provider answers for a region: heights in world units and, if it paints the ground, four layer weights a sample.

heights: Float32Array

Defined in: sdk/src/terrain/provider.ts:36


optional paint?: Float32Array<ArrayBufferLike>

Defined in: sdk/src/terrain/provider.ts:38

Grass, dirt, snow, rock, 0 to 1, four a sample; absent leaves the terrain to paint by height and slope.