本来显示正常的ClippingNode,但是加了摄像机之后,其他显示正常,就是ClippingNode不显示了
加摄像机的代码:
auto pCamera = cocos2d:
:createPerspective(60, (GLfloat)s.width/s.height, 1,1000);
pCamera->setCameraFlag( cocos2d::CameraFlag::USER1 );
pCamera->setPosition3D(Vec3(s.width/2,s.height/2,415));
pCamera->lookAt(Vec3(s.width/2,s.height/2,0), Vec3(0,1,0));
this->addChild( pCamera );
this->setCameraMask(2);

