BlendFunc Class
Helper class for setting material blend function.
Index
Properties
srcBlendFactormacro.BlendFactorspecify the source Blend Factor, this will generate a custom material object, please pay attention to the memory cost.dstBlendFactormacro.BlendFactorspecify the destination Blend Factor.
Details
Properties
srcBlendFactor
specify the source Blend Factor, this will generate a custom material object, please pay attention to the memory cost.
| meta | description |
|---|---|
| Type | macro.BlendFactor |
| Defined in | cocos2d/core/utils/blend-func.js:21 |
Examples
sprite.srcBlendFactor = cc.macro.BlendFactor.ONE;
dstBlendFactor
specify the destination Blend Factor.
| meta | description |
|---|---|
| Type | macro.BlendFactor |
| Defined in | cocos2d/core/utils/blend-func.js:44 |
Examples
sprite.dstBlendFactor = cc.macro.BlendFactor.ONE;