HeightmapFormat
此内容尚不支持你的语言。
constHeightmapFormat: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.
Type Declaration
Section titled “Type Declaration”
readonlyGrey: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.
RedGreen16
Section titled “RedGreen16”
readonlyRedGreen16:1=1
Sixteen bits across two 8-bit channels: red is the high byte, green the low one.