We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9a8f6 commit f9ff032Copy full SHA for f9ff032
cocos2d/shaders/CCGLProgram.js
@@ -553,6 +553,15 @@ cc.GLProgram = cc.Class.extend(/** @lends cc.GLProgram# */{
553
var locObj = typeof location === 'string' ? this.getUniformLocationForName(location) : location;
554
this._glContext.uniform4fv(locObj, floatArray);
555
},
556
+ /**
557
+ * calls glUniformMatrix3fv
558
+ * @param {WebGLUniformLocation|String} location
559
+ * @param {Float32Array} matrixArray
560
+ */
561
+ setUniformLocationWithMatrix3fv: function (location, matrixArray) {
562
+ var locObj = typeof location === 'string' ? this.getUniformLocationForName(location) : location;
563
+ this._glContext.uniformMatrix3fv(locObj, false, matrixArray);
564
+ },
565
566
/**
567
* calls glUniformMatrix4fv
0 commit comments