summaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-20 16:00:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-20 16:00:28 -0700
commit7c3cc646107c8662c52291b6b745ef6353a92dac (patch)
tree95a9d5a89ec8303fb66007104319c81afd16c6ea /src/webGLWorker.js
parent09337aa13a59d384c63aa3401943ab232535633d (diff)
uniform3fv
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));