Updated mesh transformation and matrices