Skip to content

heightBlend beta ​

Function of @v12-engine/client/ground

ts
export declare function heightBlend(heights: readonly number[], weights: readonly number[], depth?: number): number[];

How much of each of the tiles around a point shows, blended by height as the ground's shader does (GroundTilesPlugin): each tile's height there (0..1, its picture's alpha) raised by how near it is (weights, summing to 1); what is within depth of the highest shows, in proportion to how far over that line it is. Sums to 1. A small depth gives a crisp, ragged edge along the pictures' heights; a large one fades as the weights do