giving mass to an object is referred to as the higgs effect. this effect will transfer mass or energy to any particle that passes through it. light that passes through it gains energy, not mass, because its wave form doesn't have mass, while its particle form constantly travels at light speed.