跳转到内容

HeightmapFormat

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

const HeightmapFormat: object

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

How a heightmap image holds its heights. The file says how deep its channels are; this says what they mean, so an image is never read one way or another by what its pixels happen to hold.

readonly Grey: 0 = 0

The grey (or red) channel is the height, at the depth the file has: 16 bits from a 16-bit PNG, 8 (256 steps) from any other.

readonly RedGreen16: 1 = 1

Sixteen bits across two 8-bit channels: red is the high byte, green the low one.