News for hackers. Stuff that matters.
Re:Show HN: Repaint – a WebGL based website builder by runlaszlorun on Tuesday September 03, 2024 @01:51PM (#41437303)
I’m curious what you guys used for generating text. Canvas 2D to a texture?

And congrats. I’ve dabbled a little in trying to use WebGL in places where DOM would the typical choice, and quickly ran away. :)

Re:Show HN: Repaint – a WebGL based website builder by benshumaker0 on Tuesday September 03, 2024 @01:56PM (#41437348)
We use msdf textures. Generate them dynamically when people upload fonts. We tried 3 methods, and we're sticking with msdf for now because its very fast.
Re:Show HN: Repaint – a WebGL based website builder by izakfritz on Tuesday September 03, 2024 @01:56PM (#41437353)
Don't zoom in too close on the text :)