Most of Destiny 2's weapons can be enhanced by Masterworking them. When a weapon is Masterworked, it can generate Orbs of Power on multikills. Legendary weapons also receive a +10 increase to a random stat that's rolled when the weapon is obtained.
Related: Destiny 2: Every Possible Way To Earn Exotic Ciphers
Exotics work a bit differently. Rather than obtain a random stat bump, these weapons gain massive stat increases or new perks. Masterworking an Exotic requires the discovery of an Exotic
Read more on thegamer.com