change rotation matrix to use glm.