summaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r--src/webGLWorker.js4
1 files changed, 4 insertions, 0 deletions
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));