implement video settings, implement slider and switch button, fix torch block light

This commit is contained in:
LabyStudio
2022-05-03 18:17:54 +02:00
parent e68243220a
commit 898d0b0a84
14 changed files with 322 additions and 101 deletions
@@ -52,6 +52,8 @@ export default class ChunkSection {
this.isModified = false;
this.group.clear();
let ambientOcclusion = this.world.minecraft.settings.ambientOcclusion;
// Start drawing chunk section
let tessellator = renderer.blockRenderer.tessellator;
tessellator.startDrawing();
@@ -67,7 +69,7 @@ export default class ChunkSection {
let absoluteZ = this.z * ChunkSection.SIZE + z;
let block = Block.getById(typeId);
renderer.blockRenderer.renderBlock(this.world, block, absoluteX, absoluteY, absoluteZ);
renderer.blockRenderer.renderBlock(this.world, block, ambientOcclusion, absoluteX, absoluteY, absoluteZ);
}
}
}