integrating three.js