Fog factor changed

This commit is contained in:
MihailRis
2023-12-04 01:11:20 +03:00
parent 53ca2affcb
commit 7327c92ef1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ void WorldRenderer::drawChunks(Chunks* chunks,
void WorldRenderer::draw(const GfxContext& pctx, Camera* camera){
EngineSettings& settings = engine->getSettings();
skybox->refresh(level->world->daytime,
fmax(1.0f, 18.0f/settings.chunks.loadDistance), 4);
fmax(1.0f, 10.0f/(settings.chunks.loadDistance-2)), 4);
const Content* content = level->content;
const ContentIndices* contentIds = content->indices;
@@ -156,7 +156,7 @@ void WorldRenderer::draw(const GfxContext& pctx, Camera* camera){
ctx.depthTest(true);
ctx.cullFace(true);
float fogFactor = 18.0f / (float)settings.chunks.loadDistance;
float fogFactor = 15.0f / ((float)settings.chunks.loadDistance-2);
// Setting up main shader
shader->use();