Attaches matrix to sprite as a ColorMatrixFilter, so a caller using
colorShiftMatrix/channelScaleMatrix/blendMatrix/channelSwapMatrix never has to name
pixi.js itself just to construct the one filter class those matrices are shaped for
(item 309) - the same reasoning two-d/pixi-interop.ts gives for the rest of the interop
boundary. Replaces sprite.filters outright, the same trade-off applyImageModifiers's
~GS already accepts (see its own fix, item 288): a caller layering its own filter keeps
that filter's job, not this one's.
Attaches
matrixtospriteas aColorMatrixFilter, so a caller usingcolorShiftMatrix/channelScaleMatrix/blendMatrix/channelSwapMatrixnever has to namepixi.jsitself just to construct the one filter class those matrices are shaped for (item 309) - the same reasoningtwo-d/pixi-interop.tsgives for the rest of the interop boundary. Replacessprite.filtersoutright, the same trade-offapplyImageModifiers's~GSalready accepts (see its own fix, item 288): a caller layering its own filter keeps that filter's job, not this one's.