add 'grahics.advanced-render' and 'graphics.shadows-quality' settings

This commit is contained in:
MihailRis
2025-05-11 01:09:41 +03:00
parent b5253bff99
commit b272d86619
6 changed files with 28 additions and 7 deletions
+1 -3
View File
@@ -189,8 +189,7 @@ void ChunksRenderer::drawChunksShadowsPass(
atlas.getTexture()->bind();
for (int i = indices.size()-1; i >= 0; i--) {
auto& chunk = chunks.getChunks()[indices[i].index];
for (const auto& chunk : chunks.getChunks()) {
if (chunk == nullptr) {
continue;
}
@@ -216,7 +215,6 @@ void ChunksRenderer::drawChunks(
const auto& atlas = assets.require<Atlas>("blocks");
atlas.getTexture()->bind();
update();
// [warning] this whole method is not thread-safe for chunks