我只想改变ConvolutionFilter来创建各种锐化器。
filterSharpen = new PIXI.filters.ConvolutionFilter();
filterSharpen.matrix = [0,0,0,0,1,0,0,0,0];
filterSharpen.width = 1000;
filterSharpen.height = 1000;
sprite.filters = [filterSharpen,filterEffect];
我应该用另一个矩阵重写filterSharpen变量吗?
更新
我只是改变filterSharpen的宽度和高度