How to make dashed line/material

This thread may help