* Bring back the cube shading, but with fixed lighting.

This commit is contained in:
iProgramInCpp
2023-08-07 12:21:32 +03:00
parent b77d42b04a
commit 6c1a54e3f0
11 changed files with 60 additions and 10 deletions

View File

@@ -95,6 +95,7 @@ void MobRenderer::render(Entity* entity, float x, float y, float z, float unused
bindTexture("mob/char.png");
glEnable(GL_ALPHA_TEST);
m_pModel->setBrightness(entity->getBrightness(1.0f));
m_pModel->prepareMobModel(pMob, x2, x1, f);
m_pModel->render(x2, x1, fBob, aYaw - fSmth, aPitch, 0.059375f);
additionalRendering(pMob, f);