Deposits material from an alpha-mask "stamp". The source is placed
with its top-left at (dstX, dstY); for each source pixel whose alpha
is at or above threshold, the corresponding bitmap cell is set to
materialId. The deposit complement of Carve.fromAlphaTexture.
The primary use is procedural terrain generation from a PNG mask:
load the mask via Phaser, extract its ImageData, and call this with
a single material id to produce the initial terrain shape.
Deposits material from an alpha-mask "stamp". The source is placed with its top-left at
(dstX, dstY); for each source pixel whose alpha is at or abovethreshold, the corresponding bitmap cell is set tomaterialId. The deposit complement of Carve.fromAlphaTexture.The primary use is procedural terrain generation from a PNG mask: load the mask via Phaser, extract its
ImageData, and call this with a single material id to produce the initial terrain shape.