another option in just nodes would be 2 if nodes, a float 2 for the corner of the square and a float 1 or float 2 for side width(use float 2 if you want rectangles), along with a texcoords. If texcoords > or = to cornerCoord output 1 else output 0 If texcoords < or = to cornerCoord + sideWidth output 1 else output 0…