COSMIC RAYS AND GAMMA-RAYS IN LARGE-SCALE STRUCTURE