@colin
请教一个参数传递问题,
// 像素着色器
uniform float progress[4];
uniform vec2 centres[4];
像上面的float数组和vec数组有什么办法传递到材质shader,Array传没有效果,看不到任何东西。
另外,CustomMaterial建议加一个getParamValue方法
CustomMaterial.prototype.getParamValue = function (name) {
return this._effect.getProperty(name)
};