New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed dragonbones not supporting multiple textures #3623
Fixed dragonbones not supporting multiple textures #3623
Conversation
shield spine and dragonbones blend
@@ -80,6 +81,54 @@ let ArmatureDisplay = cc.Class({ | |||
serializable: false, | |||
}, | |||
|
|||
/** | |||
* !#en specify the source Blend Factor, this will generate a custom material object, please pay attention to the memory cost. | |||
* !#zh 指定原图的混合模式,这会克隆一个新的材质对象,注意这带来的 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释按照实际功能修改一下
set: function(value) { | ||
if (this._srcBlendFactor === value) return; | ||
this._srcBlendFactor = value; | ||
this._updateBlendFunc(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
变成只读吧,修改它没意义
* @example | ||
* sprite.dstBlendFactor = cc.macro.BlendFactor.ONE; | ||
*/ | ||
dstBlendFactor: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
* @example | ||
* sprite.srcBlendFactor = cc.macro.BlendFactor.ONE; | ||
*/ | ||
srcBlendFactor: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同 DragonBones
issue:https://github.com/cocos-creator/2d-tasks/issues/898#event-2020713305
forum:https://forum.cocos.com/t/dragonbones-2/70711
fix dragonbones use diff texture,only show one
shield spine and dragonbones blend