auto stencil = cocos2d::Sprite::create("mask.png");
auto clip = cocos2d::ClippingNode::create(stencil);
auto emitter = efk::EffectEmitter::create(efkManager);
auto effect = efk::Effect::create("effects/test.efkefc", 20);
assert(effect);
emitter->setEffect(effect);
emitter->setPlayOnEnter(true);
auto sprite = cocos2d::Sprite::create("mask.png");
clip->addChild(sprite);
clip->addChild(emitter);
addChild(clip);
Please see the first attached gif for result.
Meanwhile, EffekseerForGodot4 DOES work with clipping (the second gif). So the problem seems to be related to EffekseerForCocos2d-x rather than Effekseer.
Build with: macOS 13.6 Xcode 15.0.1 cocos2d-x v4 EffekseerForCocos2d-x latest (commit f8a286ddc3f4e692fce3c17312288bb6b89bc85c)
Run on: macOS 13.6
Testing code:
Please see the first attached gif for result.
Meanwhile, EffekseerForGodot4 DOES work with clipping (the second gif). So the problem seems to be related to EffekseerForCocos2d-x rather than Effekseer.