modified constructor of TriangleMeshRenderStateNode