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