Changed to using double precision matrices and vec3s