提交 d0cc21c0 编写于 作者: W WestLangley

Allow Additive, CustomBlending when material.transparent is false

上级 73716d6e
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册