Sourcecode @ https://github.com/Sean-Bradley/Three.js-TypeScript-Boilerplate/tree/webxr)