mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'grahics.advanced-render' and 'graphics.shadows-quality' settings
This commit is contained in:
parent
b5253bff99
commit
b272d86619
6 changed files with 28 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue