Added support for effects in Mesh.