Scrach GL stuff. Not going to be here...
added quaternions.