too many things

This commit is contained in:
2025-07-18 13:11:18 +02:00
parent b788caafa6
commit 6d0e56eb46
26 changed files with 529 additions and 191 deletions

View File

@@ -16,8 +16,10 @@ EntityRenderer::~EntityRenderer() {}
void EntityRenderer::Render() {
m_Shader->Start();
for (const auto& mob : m_World.GetMobList()) {
const auto mobCoords = mob->GetCenter();
m_Shader->SetModelPos({mobCoords.GetX(), 1, mobCoords.GetY()});
const auto mobCoords = mob->GetPosition();
float x = static_cast<float>(mobCoords.x);
float z = static_cast<float>(mobCoords.y);
m_Shader->SetModelPos({x, 1, z});
Renderer::Render(*m_EntityVao);
}
}