how can I make a solid wireframe material

This would only work for viewing in the editor. Real time, game materials don’t have access to this information/buffer as far as i know.