We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c9a8f6 + f9ff032 commit 0fd6953Copy full SHA for 0fd6953
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