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.
Parameters
Section titled “Parameters”number
height
Section titled “height”number
pixels
Section titled “pixels”ArrayLike<number>
format?
Section titled “format?”number = HeightmapFormat.Grey
ArrayLike<number>