How to create a simple hatch shader/effect?

Hello,

Suppose I have a simple shape geometry for a polygon (no holes) and basic material. What’s the easiest way to achive hatching like in this example: https://i.imgur.com/40xSVHK.png (sorry for the imgur link, upload did not work).

Hi!
For some ideas, have a look at this forum post: Would you have a idea to fix the texture size on different size shapes? - #2 by prisoner849

Thanks you.