How to use async/await when loading a material texture image
问题 I have a .obj, and .mtl with texture image that I want to render. The scene is static so I want to render by explicitly calling the renderer.render() command once (and not use animate()), after the assets are loaded, and see the texture. But the texture is not seen. To wait until the texture is loaded, I: call loadAsync() instead of load(), when loading the .mtl and the .obj files add await before some of the calls (mtlLoader.loadAsync, materials.preload, objLoader.loadAsync) change the file