mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'emission' block wrap property
This commit is contained in:
parent
54d1398d1b
commit
dfdc7ebf6b
7 changed files with 32 additions and 22 deletions
|
|
@ -128,12 +128,11 @@ const Mesh<ChunkVertex>* ChunksRenderer::render(
|
|||
chunk->flags.modified = false;
|
||||
if (important) {
|
||||
auto voxelsBuffer = prepareVoxelsVolume(*chunk);
|
||||
inwork[key] = true;
|
||||
|
||||
auto mesh = renderer->render(chunk.get(), *voxelsBuffer);
|
||||
meshes[glm::ivec2(chunk->x, chunk->z)] =
|
||||
meshes[key] =
|
||||
ChunkMesh {std::move(mesh.mesh), std::move(mesh.sortingMeshData)};
|
||||
return meshes[glm::ivec2(chunk->x, chunk->z)].mesh.get();
|
||||
return meshes[key].mesh.get();
|
||||
}
|
||||
if (inwork.find(key) != inwork.end()) {
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue