summaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r--src/webGLWorker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 367306c8..8604f82e 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -793,6 +793,12 @@ function WebGLWorker() {
this.blendFunc = function(sfactor, dfactor) {
commandBuffer.push('blendFunc', 2, sfactor, dfactor);
};
+ this.scissor = function(x, y, width, height) {
+ commandBuffer.push('scissor', 4, x, y, width, height);
+ };
+ this.colorMask = function(red, green, blue, alpha) {
+ commandBuffer.push('colorMask', 4, red, green, blue, alpha);
+ };
this.createFramebuffer = function() {
var id = nextId++;
commandBuffer.push('createFramebuffer', -1, id);