glsl-canvas icon indicating copy to clipboard operation
glsl-canvas copied to clipboard

TextureLoader Event

Open BenLune opened this issue 2 years ago • 0 comments

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 !

BenLune avatar May 31 '22 22:05 BenLune