Post #1381704
2026-04-02 11:19 UTC
@Jespertheend nice! But it sounds like you don't need pixel read-back in this case? The new API lets you use elements inside the canvas element as textures.
Replies (1)
-
@Jespertheend@mastodon.social 2026-04-02 11:34
@jaffathecake Ohh it was my understanding that you were calling toDataURL() or toBlob() on the canvas and then passing that on to the WebGL side of things. But after checking the source code just now I see you're literally passing the entire canvas element, I forgot that this was a thing you can do.