跳转到内容

heightfieldFromPixels

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

heightfieldFromPixels(width, height, pixels, format?, wide?): Heightfield

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

A heightfield from an RGBA image read as data, 0 at its lowest and 1 at its highest, by format. wide is the first channel at 16 bits, for an image whose file holds 16 bits a channel.

number

number

ArrayLike<number>

number = HeightmapFormat.Grey

ArrayLike<number>

Heightfield