mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add 'graphics.clouds-quality' setting
This commit is contained in:
parent
8153ddde89
commit
1194379f99
7 changed files with 18 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue