mirror of https://github.com/axmolengine/axmol.git
Merge pull request #326 from liswei/issue521
issue #521 set depthtest value for true ,then set depthtest value for false
This commit is contained in:
commit
7099b24ccb
|
@ -291,6 +291,8 @@ public:
|
||||||
CCActionInterval* createEffect(int nIndex, ccTime t)
|
CCActionInterval* createEffect(int nIndex, ccTime t)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
CCDirector::sharedDirector()->setDepthTest(false);
|
||||||
|
|
||||||
switch(nIndex)
|
switch(nIndex)
|
||||||
{
|
{
|
||||||
case 0: return Shaky3DDemo::actionWithDuration(t);
|
case 0: return Shaky3DDemo::actionWithDuration(t);
|
||||||
|
@ -330,7 +332,6 @@ CCActionInterval* getAction()
|
||||||
void EffectTestScene::runThisTest()
|
void EffectTestScene::runThisTest()
|
||||||
{
|
{
|
||||||
addChild(TextLayer::node());
|
addChild(TextLayer::node());
|
||||||
CCDirector::sharedDirector()->setDepthTest(false);
|
|
||||||
CCDirector::sharedDirector()->replaceScene(this);
|
CCDirector::sharedDirector()->replaceScene(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue