Former South Carolina receiver Bruce Ellington has signed a four-year contract worth almost $2.7 million with the San Francisco 49ers, according to agent Tory Dandy.

The contract will pay Ellington $2,694,428 over four years, including a $474,428 signing bonus, according to SBNation. Ellington was a fourth-round selection in the NFL Draft earlier this month, No. 106 overall.

Ellington will be part of a deep group of wide receivers in San Francisco. The 49ers have veterans Anquan Boldin, Michael Crabtree and Stevie Johnson at that position. Ellington could have snaps at slot receiver, as well as special teams.

Ellington joins former Gamecocks teammate Marcus Lattimore, who was selected by the 49ers in the 2013 draft after suffering a season-ending knee injury at South Carolina late in the 2012 season. San Francisco began a three-day rookie minicamp on Tuesday with both Ellington and Lattimore participating. Lattimore wasn't on the team's active roster last season.

As a junior last fall, Ellington led the Gamecocks with 49 catches for 775 yards and eight touchdowns. The former Berkeley High School star left South Carolina before his senior season.

Here's a look at how his contract breaks down over the four seasons:

Signing Bonus: $474,428

2014 Base: $420,000

2015 Base: $510,000

2016 Base: $600,000

2017 Base: $690,000