write when webgl meets device motion