add transparent property

This commit is contained in:
yangxiao 2014-09-11 09:15:24 +08:00
parent 4fd4a6fb94
commit 33cabb553a
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ Mesh::Mesh()
, _visibleChanged(nullptr)
, _glProgramState(nullptr)
, _blend(BlendFunc::ALPHA_NON_PREMULTIPLIED)
, _isTransparent(false)
{
}

View File

@ -132,8 +132,8 @@ protected:
Texture2D* _texture; //texture that submesh is using
MeshSkin* _skin; //skin
bool _visible; // is the submesh visible
bool _isTransparent; // is this mesh transparent, it is a property of material in fact
//since 3.3
std::string _name;
MeshIndexData* _meshIndexData;
GLProgramState* _glProgramState;