mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
remove unused code
This commit is contained in:
parent
5380bcf013
commit
75afce2a68
2 changed files with 0 additions and 17 deletions
|
|
@ -120,22 +120,6 @@ std::shared_ptr<VoxelsRenderVolume> ChunksRenderer::prepareVoxelsVolume(
|
|||
return voxelsBuffer;
|
||||
}
|
||||
|
||||
std::shared_ptr<VoxelsVolume> ChunksRenderer::prepareVoxelsVolumeDynamic(
|
||||
const Chunk& chunk, int padding
|
||||
) {
|
||||
auto voxelsBuffer = std::make_unique<VoxelsVolume>(
|
||||
CHUNK_W + padding * 2, CHUNK_H, CHUNK_D + padding * 2
|
||||
);
|
||||
voxelsBuffer->setPosition(
|
||||
chunk.x * CHUNK_W - padding, 0,
|
||||
chunk.z * CHUNK_D - padding
|
||||
);
|
||||
chunks.getVoxels(
|
||||
*voxelsBuffer, settings.graphics.backlight.get(), chunk.top + 3
|
||||
);
|
||||
return voxelsBuffer;
|
||||
}
|
||||
|
||||
const Mesh<ChunkVertex>* ChunksRenderer::render(
|
||||
const std::shared_ptr<Chunk>& chunk, bool important, bool lowPriority
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue