replaced float32array by matrix3D because of different behaviour between html5 and native