aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;