2
0
Эх сурвалжийг харах

SpritePlugin: Update sprite matrix even if opacity is 0.

Mr.doob 11 жил өмнө
parent
commit
b60845ac6d

+ 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 ];