* 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

@@ -8,6 +8,7 @@
#include "HumanoidMobRenderer.hpp"
#include "EntityRenderDispatcher.hpp"
#include "Minecraft.hpp"
#include "client/renderer/ItemInHandRenderer.hpp"
#include "client/renderer/TileRenderer.hpp"
#include "world/entity/Player.hpp"
@@ -66,6 +67,7 @@ void HumanoidMobRenderer::onGraphicsReset()
void HumanoidMobRenderer::renderHand()
{
m_pHumanoidModel->field_4 = 0;
m_pHumanoidModel->setBrightness(m_pDispatcher->m_pMinecraft->m_pMobPersp->getBrightness(1.0f));
m_pHumanoidModel->setupAnim(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0625f);
m_pHumanoidModel->m_armL.render(0.0625f);
}