【分享】Creator2.0自定义材质演示

@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)
	};

非常赞.mark.
shader 启蒙.

mark

楼主,2.2之后这些shader怎么用,色相饱和度升级不上来了

赞 以及mark