BlendFactor
枚举
混合因子 可参考: http://www.andersriggelsen.dk/glblendfunc.php
索引
ONE
ZERO
SRC_ALPHA
SRC_COLOR
DST_ALPHA
DST_COLOR
ONE_MINUS_SRC_ALPHA
ONE_MINUS_SRC_COLOR
ONE_MINUS_DST_ALPHA
ONE_MINUS_DST_COLOR
Details
ONE
全部使用
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:76 |
ZERO
全部不用
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:82 |
SRC_ALPHA
使用源颜色的透明度
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:88 |
SRC_COLOR
使用源颜色
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:94 |
DST_ALPHA
使用目标颜色的透明度
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:100 |
DST_COLOR
使用目标颜色
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:106 |
ONE_MINUS_SRC_ALPHA
减去源颜色的透明度
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:112 |
ONE_MINUS_SRC_COLOR
减去源颜色
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:118 |
ONE_MINUS_DST_ALPHA
减去目标颜色的透明度
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:124 |
ONE_MINUS_DST_COLOR
减去目标颜色
meta | description |
---|---|
类型 | Number |
定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCTypes.js:130 |