mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fix frustum culling for entities
This commit is contained in:
parent
e399e95930
commit
78e274dec4
3 changed files with 14 additions and 10 deletions
|
|
@ -177,7 +177,7 @@ public:
|
|||
struct RaycastResult {
|
||||
entityid_t entity;
|
||||
glm::ivec3 normal;
|
||||
float distance;
|
||||
float distance;
|
||||
};
|
||||
|
||||
Entities(Level* level);
|
||||
|
|
@ -186,8 +186,8 @@ public:
|
|||
void updatePhysics(float delta);
|
||||
void update(float delta);
|
||||
|
||||
void renderDebug(LineBatch& batch, const Frustum& frustum, const DrawContext& ctx);
|
||||
void render(Assets* assets, ModelBatch& batch, const Frustum& frustum, float delta, bool pause);
|
||||
void renderDebug(LineBatch& batch, const Frustum* frustum, const DrawContext& ctx);
|
||||
void render(Assets* assets, ModelBatch& batch, const Frustum* frustum, float delta, bool pause);
|
||||
|
||||
entityid_t spawn(
|
||||
EntityDef& def,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue