@ffcafe/elpis-texture
v0.2.0
Published
`composeMap(mapTex, backgroundTex?)` returns `{ format: 'png', data: Buffer }` using the shared texture worker pool. It multiplies RGBA channels, or keeps the main texture when the background is absent or its center pixel is transparent black.
Readme
Texture conversion
composeMap(mapTex, backgroundTex?) returns { format: 'png', data: Buffer } using the shared texture worker pool. It multiplies RGBA channels, or keeps the main texture when the background is absent or its center pixel is transparent black.
Map composition follows the behavior documented by Boilmaster. The implementation uses this package's existing TEX decoder and PNG encoder. This package remains GPL-3.0-only.
