Explorar o código

Support technique.states.functions.depthMask

Takahiro %!s(int64=8) %!d(string=hai) anos
pai
achega
9ae8b3d447
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;