remove ModelBatch.test(...)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user