Various utils for three.js