BlendFunc
Class
Helper class for setting material blend function.
Index
Properties
srcBlendFactor
macro.BlendFactor
specify the source Blend Factor, this will generate a custom material object, please pay attention to the memory cost.dstBlendFactor
macro.BlendFactor
specify 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:45 |
Examples
sprite.dstBlendFactor = cc.macro.BlendFactor.ONE;