Lots of changes for single and double precision on Irrlicht