summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webGLClient.js1
-rw-r--r--src/webGLWorker.js4
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));