changed transformation pipeline to allow computaton of normal matrix