add 'graphics.clouds-quality' setting

This commit is contained in:
MihailRis 2026-02-12 18:34:32 +03:00
parent 8153ddde89
commit 1194379f99
7 changed files with 18 additions and 7 deletions

View file

@ -215,8 +215,13 @@ void WorldRenderer::renderOpaque(
chunksRenderer->drawChunks(camera, shader);
blockWraps->draw(ctx, player);
setupWorldShader(cloudsShader, camera, settings, fogFactor);
cloudsRenderer->draw(cloudsShader, weather, timer, fogFactor, camera);
int cloudsQuality = settings.graphics.cloudsQuality.get();
if (cloudsQuality > 0) {
setupWorldShader(cloudsShader, camera, settings, fogFactor);
cloudsRenderer->draw(
cloudsShader, weather, timer, fogFactor, camera, cloudsQuality
);
}
if (hudVisible) {
renderLines(camera, linesShader, ctx);