Explorar o código

SpritePlugin: Update sprite matrix even if opacity is 0.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
b60845ac6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/renderers/plugins/SpritePlugin.js

+ 1 - 1
src/extras/renderers/plugins/SpritePlugin.js

@@ -156,7 +156,7 @@ THREE.SpritePlugin = function () {
 			sprite = sprites[ i ];
 			material = sprite.material;
 
-			if ( ! sprite.visible || material.opacity === 0 ) continue;
+			if ( sprite.visible === false ) continue;
 
 			sprite._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, sprite.matrixWorld );
 			sprite.z = - sprite._modelViewMatrix.elements[ 14 ];