How to create wireframe material, for any object?

You’ll need 2 meshes overlapping. Add the Wireframe material on one mesh, and the Material of your choice on the second. Now add a simple scalar value 0.2 to your second material’s Pixel Depth Offset node.
eb54b33078143299c404fc1c09e8f3b905c70f71.jpeg