I used the example from the documentation
https://pixijs.io/pixi-react/hoc/with-filters/
const Filters = withFilters(Container, {
matrix: PIXI.filters.ColorMatrixFilter,
});
but PIXI.filters is undefined… (I’m getting an error “cannot read properties of undefined, reading ColorMatrixFilter”)
I’ve installed the ‘pixi-filters’ package which didn’t help.
The documentation doesn’t mention any other steps needed. Am I missing something?
I then tried :
const Filters = withFilters(Container, {
matrix: PIXI.ColorMatrixFilter,
});
(which gives the error Uncaught TypeError: Cannot set properties of undefined (setting ‘uSampler’))
Also what’s the best way to make a Sprite that’s translucent with a solid border? I was looking into OutlineFilter and ColorMatrixFilter.
Thanks for the help!!
Sprinkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.