remove ModelBatch.test(...)

This commit is contained in:
MihailRis
2024-06-21 19:19:20 +03:00
parent 6ba38ee167
commit 1a12a6923a
3 changed files with 7 additions and 27 deletions
+7 -1
View File
@@ -197,13 +197,19 @@ void WorldRenderer::renderLevel(
model::Model model {};
auto& mesh = model.addMesh("gui/warning");
mesh.addBox({}, glm::vec3(1));
mesh.addBox({}, glm::vec3(2));
auto& mesh2 = model.addMesh("gui/error");
mesh2.addBox({}, glm::vec3(1.25f));
mesh2.addBox({}, glm::vec3(3.25f));
assets->getTexture("gui/menubg")->bind();
shader->uniformMatrix("u_model", glm::mat4(1.0f));
//modelBatch->test(glm::vec3(0, 88, 0), glm::vec3(1.0f));
modelBatch->pushMatrix(glm::translate(glm::mat4(1.0f), glm::vec3(0, 88, 0)));
modelBatch->pushMatrix(glm::rotate(glm::mat4(1.0f), static_cast<float>(Window::time()), glm::vec3(1, 0, 0)));
modelBatch->draw(model);
modelBatch->popMatrix();
modelBatch->popMatrix();
skybox->unbind();
}