'Three js - Get Texture from memory
I've got a 3rd party JS component that uses Three.js and it loads some textures by passing the URL's to the jpeg's into the load function of the Three.js TextureLoader. This will download the jpg image and assign it to the texture object. In my case the download of those pictures needs some authentication stuff in the header of the request...so i have to download the jpg myself and then craft a Texture object out of it...how can i do this? I can't find a way to create a texture out of a byte array or ReadableStream of a jpeg...thats what I have.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
