
这样设置 并不能让 node.opacity 生效

这样设置 并不能让 node.opacity 生效
将node的颜色通过材质传递到shader
let color = { “r” : this.node.color.getR()/255, “g” : this.node.color.getB()/255, “b” : this.node.color.getB()/255, “a” : this.node.opacity/255};
this._material.setProperty(“color”,color);
好了 ,我的锅,我没应用材质