improve scaling in canvas3d