weight paint with materials?

i tried to assign different weights to different vertices, and this is what came out…



can i do that? can i plug in a weight paint into a mix shader?

You cannot use weight paint as an attribute node http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Input#Attribute
You could use vertex paint instead