Can we create a texture synchronously (f.e. if we have a DataURL and therefore don’t need to get the image through network)? How can we do this so that no async is needed?
1 Like
This one might be interesting for you:
Based on that, seems like it’s not possible while the TextureLoader uses <img>
. Maybe it’s possible to somehow pass a typed array to gl (need confirmation on this), and it would also be possible to make a Webpack loader that imports to typed array instead of data URL.
You can do this with DataTexture.
2 Likes
SAWEEEET. And look at this: arraybuffer-loader !