Browse Source

Support technique.states.functions.depthMask

Takahiro 8 years ago
parent
commit
9ae8b3d447
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/js/loaders/GLTFLoader.js

+ 1 - 0
examples/js/loaders/GLTFLoader.js

@@ -1180,6 +1180,7 @@ THREE.GLTFLoader = ( function () {
 
 						materialParams.depthTest = enableDepthTest;
 						materialParams.depthFunc = functions.depthFunc !== undefined ? WEBGL_DEPTH_FUNCS[ functions.depthFunc ] : THREE.LessDepth;
+						materialParams.depthWrite = functions.depthMask !== undefined ? functions.depthMask[ 0 ] : true;
 
 						materialParams.blending = enableBlend ? THREE.CustomBlending : THREE.NoBlending;
 						materialParams.transparent = enableBlend;