pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
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