mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
add test entities prototype
This commit is contained in:
parent
6f618ae3ff
commit
ba458be334
7 changed files with 121 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue