Nikolai Sviridov
08/19/2021, 6:36 PMhttp://127.0.0.1:5500/my_file.png▾
turansky
08/19/2021, 6:46 PMturansky
08/19/2021, 6:47 PMNikolai Sviridov
08/19/2021, 7:06 PMconst textureLoader = new THREE.TextureLoader();
const blocksBaseColor = textureLoader.load("<http://127.0.0.1:5500/textures/blocks-basecolor.jpg>");
In documentation load
receives url — the path or URL to the file. This can also be a Data URI.turansky
08/19/2021, 8:17 PMsrc/main/resources
turansky
08/19/2021, 8:17 PMNikolai Sviridov
08/23/2021, 8:49 AM