* Improve the entity ID system, and add priority system. We should no longer have clashes.

This commit is contained in:
iProgramInCpp
2023-08-07 23:05:30 +03:00
parent e028fc6495
commit 1b97875dd6
9 changed files with 78 additions and 6 deletions

View File

@@ -156,7 +156,7 @@ void MobRenderer::renderNameTag(Mob* mob, const std::string& str, float x, float
glNormal3f(0.0f, 1.0f, 0.0f);
// billboard the name towards the camera
glRotatef(-m_pDispatcher->m_yaw, 0.0f, 1.0f, 0.0f);
glRotatef(-m_pDispatcher->m_pitch, 1.0f, 0.0f, 0.0f);
glRotatef(m_pDispatcher->m_pitch, 1.0f, 0.0f, 0.0f);
glScalef(-0.026667f, -0.026667f, 0.026667f);
glDepthMask(false);
glDisable(GL_DEPTH_TEST);