Attired in his signature fedora and a tan vest over a short-sleeved sport shirt, Mars embraced the music with the spirit that his wardrobe suggested: Despite a flashy light show, the songs were breezy and melodically engaging.

“We’ve been waiting a long time to come down here and play for you all,” Mars said in the opening moments. Then, he made it worth the wait.

Like Timberlake, Mars is a multiple threat. He’s a versatile pop songwriter, collaborating with R&B star B.o.B. (“Nothin’ on You”) and Flo Rida (“Right Round”), among others. He’s also an in-demand producer and an under-appreciated performer who sings and dances with ease.

On Tuesday, those skills were evident on well-crafted pop hits such as “Just the Way You Are” and “Locked Out of Heaven.” Both inspired massive sing-alongs on catchy choruses.

All night long, Mars borrowed and blended styles, from frequent reggae/R&B hybrids to the glorious Brill Building pop of “Marry You.”

The slinky style of “Treasure” evoked “Off the Wall”-era Michael Jackson, then brushed against the golden oldie “Money (That’s What I Want).” The latter worked as an inspired transition into “Billionaire,” which Mars co-wrote with Travie McCoy.

Even better, the doo-wop DNA of “If I Knew” showed that Mars has listened to his share of Otis Redding, too. Mars embellished the song with a funny monologue that included tips for aspiring R&B stars. Later, he genuinely revealed his softer side with a sweet “Nothin’ On You” and a piano-powered “When I Was Your Man.”

Although outgoing, Mars still seems an utterly unaffected pop star, limiting his dance steps to choreographed ensemble routines and often blending into the background with the members of his 8-piece band.

He can avoid the spotlight as much as he wants, but Timberlake still had better watch his back. This guy won’t stay in the shadows for long.