|
@@ -655,9 +655,9 @@ function WebGLState( gl, extensions, utils ) {
|
|
|
|
|
|
setFlipSided( flipSided );
|
|
|
|
|
|
- material.transparent === true
|
|
|
- ? setBlending( material.blending, material.blendEquation, material.blendSrc, material.blendDst, material.blendEquationAlpha, material.blendSrcAlpha, material.blendDstAlpha, material.premultipliedAlpha )
|
|
|
- : setBlending( NoBlending );
|
|
|
+ ( material.blending === NormalBlending && material.transparent === false )
|
|
|
+ ? setBlending( NoBlending )
|
|
|
+ : setBlending( material.blending, material.blendEquation, material.blendSrc, material.blendDst, material.blendEquationAlpha, material.blendSrcAlpha, material.blendDstAlpha, material.premultipliedAlpha );
|
|
|
|
|
|
depthBuffer.setFunc( material.depthFunc );
|
|
|
depthBuffer.setTest( material.depthTest );
|