Closed gabrielliwerant closed 3 months ago
I discovered that the following works:
const hsl = new HslAdjustmentFilter();
hsl.saturation = -0.55;
sprite.filters = [hsl];
But this does not:
sprite.filters = [new HslAdjustmentFilter({ saturation: -0.55 })];
This is a breaking change that I don't see documented anywhere. Is this a bug or intentional? If intentional, can we add documentation around it?
Seems unintentional since the old syntax still works for colorize
and hue
.
Thanks for pointing this out. I think this was just an oversight as many of the filters needed to be rewritten to support WebGPU so lots of things got moved around. Added a PR to fix setting these props via constructor.
The HslAdjustmentFilter used in the following way no longer works in pixi.js v8. It worked fine in v7.
colorize: true
andhue
used on their own appear to work, butsaturation
,lightness
, andalpha
do not.