Everyone dies — but thanks to CGI, a select few can come back to life. While the technology is not new (it was used as far back as 1993, after Brandon Lee died while filming The Crow), it has been dramatically refined in recent years. For the 2016 Star Wars prequel, Rogue One, Peter Cushing, who died in 1994, reprised his 1977 role of Grand Moff Tarkin. Visual effects (VFX) artists studied motion-capture video of a stand-in reading Tarkin’s lines to inform their painstaking re-creation of Cushing’s likeness in CGI.
Source: The Future of Entertainment