Skip to content

heightsToPixels beta ​

Function of @v12-engine/engine

ts
export declare function heightsToPixels(heights: Float32Array, width: number, depth: number): {
    pixels: Uint8ClampedArray;
    low: number;
    high: number;
};

The heights of a terrain as the pixels of a picture (RGBA), a pixel a corner: the lowest black, the highest white