mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add on_hud_render event
This commit is contained in:
parent
247acb3687
commit
4aa76e35b7
4 changed files with 17 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include "../../items/ItemDef.hpp"
|
||||
#include "../../items/ItemStack.hpp"
|
||||
#include "../../logic/PlayerController.hpp"
|
||||
#include "../../logic/scripting/scripting_hud.hpp"
|
||||
#include "../../maths/FrustumCulling.hpp"
|
||||
#include "../../maths/voxmaths.hpp"
|
||||
#include "../../objects/Player.hpp"
|
||||
|
|
@ -199,6 +200,9 @@ void WorldRenderer::renderLevel(
|
|||
|
||||
shader->uniformMatrix("u_model", glm::mat4(1.0f));
|
||||
level->entities->render(assets, *modelBatch, *frustumCulling, pause);
|
||||
if (!pause) {
|
||||
scripting::on_frontend_render();
|
||||
}
|
||||
modelBatch->render();
|
||||
|
||||
skybox->unbind();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue