diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-20 16:00:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-20 16:00:28 -0700 |
commit | 7c3cc646107c8662c52291b6b745ef6353a92dac (patch) | |
tree | 95a9d5a89ec8303fb66007104319c81afd16c6ea | |
parent | 09337aa13a59d384c63aa3401943ab232535633d (diff) |
uniform3fv
-rw-r--r-- | src/webGLClient.js | 1 | ||||
-rw-r--r-- | src/webGLWorker.js | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js index f8b51ecc..82ffdf5c 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -24,6 +24,7 @@ function WebGLClient() { case 'getShaderParameter': case 'uniform1i': case 'uniform1f': + case 'uniform3fv': case 'uniform4fv': case 'uniformMatrix4fv': case 'getUniformLocation': diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 5d757dd7..9c62f352 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -671,6 +671,10 @@ function WebGLWorker() { if (!location) return; commandBuffer.push('uniform1f', 2, location.id, data); }; + this.uniform3fv = function(location, data) { + if (!location) return; + commandBuffer.push('uniform3fv', 2, location.id, new Float32Array(data)); + }; this.uniform4fv = function(location, data) { if (!location) return; commandBuffer.push('uniform4fv', 2, location.id, new Float32Array(data)); |