Browse Source

WebGLState: Clearer setBlending(). See #11752.

Mr.doob 8 năm trước cách đây
mục cha
commit
0384493e2a
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      src/renderers/webgl/WebGLState.js

+ 2 - 3
src/renderers/webgl/WebGLState.js

@@ -599,8 +599,6 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 
 			}
 
-			currentPremultipledAlpha = premultipliedAlpha;
-
 		}
 
 		if ( blending === CustomBlending ) {
@@ -641,7 +639,8 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
 		}
 
 		currentBlending = blending;
-		
+		currentPremultipledAlpha = premultipliedAlpha;
+
 	}
 
 	function setMaterial( material ) {