function addMeshToMaterial(mesh, material, name) {
    var expressions = mesh.value.expressions;
    var previous = expressions[name];
    var shouldRemove = true;
    var len = material.inputs;

    while(len--)
        addMeshToMaterial(mesh, material.inputs[len], name);

    len = INPUTS.length;

    while (len--)
        shouldRemove |= (name !== INPUTS[len] && previous !== expressions[INPUTS[len]]);

    if (shouldRemove)
        material.meshes.splice(material.meshes.indexOf(previous), 1);

    if (material.meshes.indexOf(mesh) === -1)
        material.meshes.push(mesh);
}
Draws given Mesh's current state.

@method

@return {undefined} undefined