diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-13 15:18:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-13 15:18:34 -0700 |
commit | 091a3251e732d4d0fe8d6131e4a69ff0c3afb24a (patch) | |
tree | a8bfc94c33e454832e756697134c7fe9c3d88c96 | |
parent | 7451a7cd157e2ff9709fac8c21ef0c7b396103de (diff) |
uniform1i
-rw-r--r-- | src/webGLClient.js | 1 | ||||
-rw-r--r-- | src/webGLWorker.js | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js index 663c693a..6b32fdf5 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -11,6 +11,7 @@ function WebGLClient() { switch (command) { case 'getProgramParameter': case 'getShaderParameter': + case 'uniform1i': case 'uniform4fv': case 'uniformMatrix4fv': case 'getUniformLocation': diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 7364c6b0..0a03787e 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -607,6 +607,9 @@ function WebGLWorker() { this.useProgram = function(program) { commandBuffer.push('useProgram', 1, program.id); }; + this.uniform1i = function(location, data) { + commandBuffer.push('uniform1i', 2, location.id, data); + }; this.uniform4fv = function(location, data) { commandBuffer.push('uniform4fv', 2, location.id, new Float32Array(data)); }; |