如何在PixiJS中改变卷积

时间:2018-09-07 13:00:43

标签: javascript matrix canvas

我只想改变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的宽度和高度

0 个答案:

没有答案