Polygon Side

 

The Polygon Side node generates a black or white value based on the normal direction of a polygon. This can be used as a mask for mix nodes, allowing you to assign different textures or materials to different sides of a polygon.