Evgeniy Rojkov ccBlendFunc not working?
Posts 37
Added by Evgeniy Rojkov over 1 year ago

i tryed to use some additive blending with sprites and didnt see anything changed.
what's im doing wrong ?

example 1

CCSprite someSprite = CCSprite.spriteWithFile("someImage");
someSprite.BlendFunc.src = OGLES.GL_ONE; //also tryed GL_SRC_ALPHA
someSprite.BlendFunc.dst = OGLES.GL_ONE;
addChild(someSprite);

example 2

CCSprite someSprite = CCSprite.spriteWithFile("someImage");
ccBlendFunc someBlend = new ccBlendFunc();
someBlend.src = OGLES.GL_ONE; //also tryed GL_SRC_ALPHA
someBlend.dst = OGLES.GL_ONE;
someSprite.BlendFunc = someBlend;
addChild(someSprite);
RongHong Huang RE: ccBlendFunc not working?
Posts 171
Added by RongHong Huang over 1 year ago

hello, this is a bug, issue 1048(http://www.cocos2d-x.org/issues/1048) has been created for it


(1-1/1)