浏览代码

Due to an iOS bug - changing to constant numbers.

Raanan Weber 9 年之前
父节点
当前提交
49bb4640fa
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/States/babylon.stencilState.ts

+ 4 - 4
src/States/babylon.stencilState.ts

@@ -133,13 +133,13 @@
             this._stencilTest = false;
             this._stencilMask = 0xFF;
 
-            this._stencilFunc = WebGLRenderingContext.ALWAYS;
+            this._stencilFunc = 0x0207; //WebGLRenderingContext.ALWAYS;
             this._stencilFuncRef = 1;
             this._stencilFuncMask = 0xFF;
 
-            this._stencilOpStencilFail = WebGLRenderingContext.KEEP;
-            this._stencilOpDepthFail = WebGLRenderingContext.KEEP;
-            this._stencilOpStencilDepthPass = WebGLRenderingContext.REPLACE;
+            this._stencilOpStencilFail = 0x1E00; //WebGLRenderingContext.KEEP;
+            this._stencilOpDepthFail = 0x1E00; //WebGLRenderingContext.KEEP;
+            this._stencilOpStencilDepthPass = 0x1E01; //WebGLRenderingContext.REPLACE;
 
             this._isStencilTestDirty = true;
             this._isStencilMaskDirty = true;