glsl-canvas
glsl-canvas copied to clipboard
TextureLoader Event
Hi,
Thanks a lot for this lib !
I'm trying to load a texture in the Canvas but I can't find a way to get a Promise to know when the loading is finished. Did I missed something ?
I'm loading it with the loadTexture
function, but it returns void, no Promise.
A previous version of the code in pure JS runs with glslCanvas, as it returns a Promise. I had to use that code in a Typescript Application (Angular), so I was happy to find your lib :-), but I have troubles with Promise on Texture loading.
Thank you !