[]动画添加了 滤镜,drawcall 次数暴增,这是为啥????
var url = App.animManager.getUrl(id);
this.ani.loadAtlas(url,null,id);
this.ani.alpha = 0.5;
this.ani.play(0, true);
var grayMat = [
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 1, 0
];
//创建一个颜色滤镜对象,灰图
var scaleFilter = new Laya.ColorFilter(grayMat);
this.ani.filters = [scaleFilter];
没有找到相关结果
已邀请:
1 个回复
经典之声
赞同来自: