Added local GLM contrib.
Adapted code for newer GLM version without Swizzling.