summaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r--src/webGLWorker.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 79d46595..ae104680 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -780,6 +780,15 @@ function WebGLWorker() {
this.pixelStorei = function(pname, param) {
commandBuffer.push('pixelStorei', 2, pname, param);
};
+ this.depthMask = function(flag) {
+ commandBuffer.push('depthMask', 1, flag);
+ };
+ this.depthRange = function(near, far) {
+ commandBuffer.push('depthRange', 2, near, far);
+ };
+ this.blendFunc = function(sfactor, dfactor) {
+ commandBuffer.push('blendFunc', 2, sfactor, dfactor);
+ };
// Setup
var dropped = 0;