Merge pull request #13471 from super626/v3.8

skybox should not be transparent
This commit is contained in:
pandamicro 2015-08-21 12:22:48 +08:00
commit 306a0e4df7
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ void Skybox::draw(Renderer* renderer, const Mat4& transform, uint32_t flags)
{ {
_customCommand.init(_globalZOrder); _customCommand.init(_globalZOrder);
_customCommand.func = CC_CALLBACK_0(Skybox::onDraw, this, transform, flags); _customCommand.func = CC_CALLBACK_0(Skybox::onDraw, this, transform, flags);
_customCommand.setTransparent(false);
_customCommand.set3D(true);
renderer->addCommand(&_customCommand); renderer->addCommand(&_customCommand);
} }