WALLPAPER GROUPS → 2*22 (cmm)

Reflections along both axes and 2-fold rotations on a centered rectangular lattice.

vec2 cmm(vec2 uv){
  if((int(floor(uv.y/2.))&1)==0){uv.x=1.-uv.x;}
  uv=abs(mod(uv,2.)-1.);
  return uv;
}