How to Render a mesh into a Texture?

I want to Render a mesh with a material into a Texture, Then change to another material render to another Texture, at last blend two texture when postprocess. How can i do this?