From 33cabb553a99a8f2685e1830feaf60fac02104ef Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 11 Sep 2014 09:15:24 +0800 Subject: [PATCH] add transparent property --- cocos/3d/CCMesh.cpp | 1 + cocos/3d/CCMesh.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos/3d/CCMesh.cpp b/cocos/3d/CCMesh.cpp index f683caf684..7b10693999 100644 --- a/cocos/3d/CCMesh.cpp +++ b/cocos/3d/CCMesh.cpp @@ -43,6 +43,7 @@ Mesh::Mesh() , _visibleChanged(nullptr) , _glProgramState(nullptr) , _blend(BlendFunc::ALPHA_NON_PREMULTIPLIED) +, _isTransparent(false) { } diff --git a/cocos/3d/CCMesh.h b/cocos/3d/CCMesh.h index c55f949460..b8c774a680 100644 --- a/cocos/3d/CCMesh.h +++ b/cocos/3d/CCMesh.h @@ -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;