add NotePreset
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user