mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +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;
|
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 Mesh<ChunkVertex>* ChunksRenderer::render(
|
||||||
const std::shared_ptr<Chunk>& chunk, bool important, bool lowPriority
|
const std::shared_ptr<Chunk>& chunk, bool important, bool lowPriority
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ class ChunksRenderer {
|
||||||
size_t index, const Camera& camera, bool culling
|
size_t index, const Camera& camera, bool culling
|
||||||
);
|
);
|
||||||
std::shared_ptr<VoxelsRenderVolume> prepareVoxelsVolume(const Chunk& chunk);
|
std::shared_ptr<VoxelsRenderVolume> prepareVoxelsVolume(const Chunk& chunk);
|
||||||
std::shared_ptr<VoxelsVolume> prepareVoxelsVolumeDynamic(const Chunk& chunk, int padding);
|
|
||||||
|
|
||||||
size_t enqueuedInFrame = 0;
|
size_t enqueuedInFrame = 0;
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue