diff options
-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)); |