show-chunk-borders is a setting now

This commit is contained in:
MihailRis
2023-11-24 19:39:45 +03:00
parent f54283cab1
commit 48b6c92472
6 changed files with 23 additions and 19 deletions
+1 -5
View File
@@ -29,20 +29,16 @@ class WorldRenderer {
Frustum* frustumCulling;
LineBatch* lineBatch;
ChunksRenderer* renderer;
bool chunkBorders = false;
bool drawChunk(size_t index, Camera* camera, Shader* shader, bool occlusion);
void drawChunks(Chunks* chunks, Camera* camera, Shader* shader, bool occlusion);
public:
float skyLightMutliplier = 1.0f; // will be replaced with day-night cycle
WorldRenderer(Engine* engine, Level* level, const ContentGfxCache* cache);
~WorldRenderer();
void draw(const GfxContext& context, Camera* camera, bool occlusion);
void drawDebug(const GfxContext& context, Camera* camera);
inline bool isChunkBordersOn() {return chunkBorders;}
inline void setChunkBorders(bool flag) {chunkBorders = flag;}
};