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