RyanDeBarros / Mustang

Writing my own 2D renderer in C++ OpenGL!
2 stars 0 forks source link

Text rendering does not work when using a common buffer for glyphs. #4

Open RyanDeBarros opened 2 hours ago

RyanDeBarros commented 2 hours ago

Text rendering works when each glyph has an individual image buffer (and therefore also individual texture), but not when glyphs share an image buffer (and therefore a more optimal atlas texture).

RyanDeBarros commented 2 hours ago

The UVs seem correct, and the glyphs render as noise, so the issue is probably in how each glyph's bitmap is generated on the common buffer.