So I'm having trouble adding objects to the scene in THREE.js. My project structure looks something like this:
In object.js I upload a 3D model of the object using loader. Then I want to export it to main.js and add it to scene there. But since downloading the file takes some time, I can't use the export keyword in the asynchronous function. Is it possible to somehow get around this?