aboutsummaryrefslogtreecommitdiff
path: root/src/webGLWorker.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-16 16:39:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-16 16:39:34 -0700
commitcaa9bca9139ce5837eb3fe376b4677e2c6036b3e (patch)
tree8a26ed0f34570be9507d27bfdd5303c74c2181d6 /src/webGLWorker.js
parentae49b8f0bde8098e2b2361cf1eecd0d93002fea6 (diff)
clearDepth, depthFunc, frontFace, cullFace
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r--src/webGLWorker.js12
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;