McLaren has revealed the car it will race in next year's World Endurance Championship, including the legendary 24 Hours of Le Mans.