Pattern-dependent charging in plasmas