pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
13 lines (10 loc) • 351 B
JavaScript
import { BLEND_TO_NPM } from './const.mjs';
;
function getAdjustedBlendModeBlend(blendMode, textureSource) {
if (textureSource.alphaMode === "no-premultiply-alpha") {
return BLEND_TO_NPM[blendMode] || blendMode;
}
return blendMode;
}
export { getAdjustedBlendModeBlend };
//# sourceMappingURL=getAdjustedBlendModeBlend.mjs.map