This is native port (C++) of three.js