mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13471 from super626/v3.8
skybox should not be transparent
This commit is contained in:
commit
306a0e4df7
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue