|
@@ -250,16 +250,11 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
gl.blendEquationSeparate( gl.FUNC_ADD, gl.FUNC_ADD );
|
|
|
gl.blendFuncSeparate( gl.ZERO, gl.ZERO, gl.SRC_COLOR, gl.SRC_ALPHA );
|
|
|
|
|
|
- } else if( blending === THREE.NormalBlending || blending === THREE.NoBlending ) {
|
|
|
+ } else {
|
|
|
|
|
|
gl.blendEquationSeparate( gl.FUNC_ADD, gl.FUNC_ADD );
|
|
|
gl.blendFuncSeparate( gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA );
|
|
|
|
|
|
- }
|
|
|
- else {
|
|
|
-
|
|
|
- console.error( "Unsupported blending type: " + blending );
|
|
|
-
|
|
|
}
|
|
|
|
|
|
currentBlending = blending;
|