Post #1381705
2026-04-02 11:34 UTC
@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.
Replies (2)
-
@Jespertheend@mastodon.social 2026-04-02 11:34
@jaffathecake I mean, I guess this could work for us, but there's still lots of situations where reading pixels is desirable. Such as allowing players to download screenshots, or auto adjusting expose based on brightness of a scene is also very common. So I'd rather avoid a tainted canvas where possible.
-
@jaffathecake@mastodon.social 2026-04-02 11:35
@Jespertheend well it's only a thing with this experimental feature. But yeah, you can upload any child of the as a texture (or draw it, in 2d canvas)