فهرست منبع

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;