pixi-jsFunctions
Function: getAdjustedBlendModeBlend()
> getAdjustedBlendModeBlend(blendMode, textureSource): BLEND_MODES
Defined in: node_modules/pixi.js/lib/rendering/renderers/shared/state/getAdjustedBlendModeBlend.d.ts:12
Internal
Adjusts a blend mode for the current alpha mode. Returns the blend mode that works with that format. eg 'normal' blend mode will return 'normal-npm' when rendering with premultiplied alpha. and 'normal' if the texture is already premultiplied (the default)
Parameters
blendMode
The blend mode to get the adjusted blend mode for.
textureSource
The texture to test the format of.
Returns
- the blend mode that should be used to render this texture correctly based on its alphaMode