add test entities prototype

This commit is contained in:
MihailRis
2024-06-23 22:09:04 +03:00
parent 6f618ae3ff
commit ba458be334
7 changed files with 121 additions and 1 deletions
+2 -1
View File
@@ -15,6 +15,7 @@
#include "../../maths/FrustumCulling.hpp"
#include "../../maths/voxmaths.hpp"
#include "../../objects/Player.hpp"
#include "../../objects/Entities.hpp"
#include "../../settings.hpp"
#include "../../voxels/Block.hpp"
#include "../../voxels/Chunk.hpp"
@@ -195,7 +196,7 @@ void WorldRenderer::renderLevel(
drawChunks(level->chunks.get(), camera, shader);
shader->uniformMatrix("u_model", glm::mat4(1.0f));
// draw entities here
level->entities->render(assets, *modelBatch);
modelBatch->render();
skybox->unbind();