Dallinger / Griduniverse

Welcome to the Griduniverse.
7 stars 3 forks source link

Sprites Take 2 #265

Closed alecpm closed 1 year ago

alecpm commented 1 year ago

Refs #251 and based on #260

There are some limitations when using a WebGL/Regl canvas that needed to be worked around for this:

I've moved the emoji rendering to use a canvas texture with a text fill. This simplified the implementation of emojis, but they can only be added by pasting the characters directly, not by name.

I think this is in decent shape now and seems to be performing well.

alecpm commented 1 year ago

I've added @cguardia as a reviewer since he got pretty deep into this. From the looks of it Matthew Wilkes probably did most of the post-Jordan work on this. Feel free to try it out @jessesnyder and @silviot, it seems to be working well from here, but it would be nice to have it tested on different machines, browsers, and OSs, in case we run into resource issues with all the texture objects in the pipeline.

silviot commented 1 year ago

This works flawlessly for me on Chrome/Linux.