add NotePreset

This commit is contained in:
MihailRis
2024-11-12 22:53:45 +03:00
parent aadb04c41e
commit 866f6e9951
3 changed files with 68 additions and 3 deletions
+5 -3
View File
@@ -426,12 +426,14 @@ void WorldRenderer::renderTexts(
zvec.z *= -1;
zvec = glm::normalize(zvec);
float ppbx = 100;
float ppby = 100;
font.draw(
*batch3d,
string,
pos - zvec * (font.calcWidth(string, string.length()) * 0.5f),
zvec,
camera.up
pos - zvec * (font.calcWidth(string, string.length()) * 0.5f) / ppbx,
zvec / ppbx,
camera.up / ppby
);
batch3d->flush();
}