提交 8deb3022 编写于 作者: S sunag 提交者: Mr.doob

fix set automatic .transparent NodeMaterial (#9243)

* fix set automatic .transparent NodeMaterial

* minimalist optimization
上级 e07f90ba
......@@ -210,7 +210,7 @@ THREE.NodeMaterial.prototype.build = function() {
}
this.lights = this.requestAttrib.light;
this.transparent = this.requestAttrib.transparent;
this.transparent = this.requestAttrib.transparent || (this.blendMode !== THREE.NormalBlending && this.blendMode !== THREE.NoBlending);
this.vertexShader = [
this.prefixCode,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册