diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-16 16:39:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-16 16:39:34 -0700 |
commit | caa9bca9139ce5837eb3fe376b4677e2c6036b3e (patch) | |
tree | 8a26ed0f34570be9507d27bfdd5303c74c2181d6 /src/webGLWorker.js | |
parent | ae49b8f0bde8098e2b2361cf1eecd0d93002fea6 (diff) |
clearDepth, depthFunc, frontFace, cullFace
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r-- | src/webGLWorker.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index eb20b89e..9c3feea0 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -707,6 +707,18 @@ function WebGLWorker() { default: throw 'unsupported getShaderParameter ' + pname; } }; + this.clearDepth = function(depth) { + commandBuffer.push('clearDepth', 1, depth); + }; + this.depthFunc = function(depth) { + commandBuffer.push('depthFunc', 1, depth); + }; + this.frontFace = function(depth) { + commandBuffer.push('frontFace', 1, depth); + }; + this.cullFace = function(depth) { + commandBuffer.push('cullFace', 1, depth); + }; // Setup var dropped = 0; |