fix frustum culling for entities

This commit is contained in:
MihailRis
2024-08-03 17:41:03 +03:00
parent e399e95930
commit 78e274dec4
3 changed files with 14 additions and 10 deletions
+3 -3
View File
@@ -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,