fix u_timer behaviour when paused

This commit is contained in:
MihailRis
2024-07-18 13:50:57 +03:00
parent 3549c1f326
commit 2c1adcedbd
3 changed files with 9 additions and 5 deletions
+2
View File
@@ -40,6 +40,7 @@ class WorldRenderer {
std::unique_ptr<Skybox> skybox;
std::unique_ptr<Batch3D> batch3d;
std::unique_ptr<ModelBatch> modelBatch;
float timer = 0.0f;
bool drawChunk(size_t index, Camera* camera, Shader* shader, bool culling);
void drawChunks(Chunks* chunks, Camera* camera, Shader* shader);
@@ -73,6 +74,7 @@ public:
Camera* camera,
bool hudVisible,
bool pause,
float delta,
PostProcessing* postProcessing
);
void drawBorders(int sx, int sy, int sz, int ex, int ey, int ez);