Bladeren bron

Merge pull request #1445 from sebavan/HighlightLayerExcludeList

Try Again
David Catuhe 8 jaren geleden
bovenliggende
commit
7d76c21e30
2 gewijzigde bestanden met toevoegingen van 14 en 0 verwijderingen
  1. 7 0
      src/States/babylon.alphaCullingState.ts
  2. 7 0
      src/States/babylon.depthCullingState.ts

+ 7 - 0
src/States/babylon.alphaCullingState.ts

@@ -5,6 +5,13 @@
         private _alphaBlend = false;
         private _blendFunctionParameters = new Array<number>(4);
 
+        /**
+         * Initializes the state.
+         */
+        public constructor() {
+            this.reset();
+        }
+
         public get isDirty(): boolean {
             return this._isAlphaBlendDirty || this._isBlendFunctionParametersDirty;
         }

+ 7 - 0
src/States/babylon.depthCullingState.ts

@@ -14,6 +14,13 @@
         private _cullFace: number;
         private _zOffset: number;
 
+        /**
+         * Initializes the state.
+         */
+        public constructor() {
+            this.reset();
+        }
+
         public get isDirty(): boolean {
             return this._isDepthFuncDirty || this._isDepthTestDirty || this._isDepthMaskDirty || this._isCullFaceDirty || this._isCullDirty || this._isZOffsetDirty;
         }