optimize a bit

This commit is contained in:
MihailRis
2024-11-17 03:19:55 +03:00
parent 5240fe6226
commit bd4a5ef7fc
3 changed files with 46 additions and 51 deletions
+1 -3
View File
@@ -12,8 +12,6 @@
#include <glm/glm.hpp>
#include "util/timeutil.hpp"
const glm::vec3 BlocksRenderer::SUN_VECTOR (0.411934f, 0.863868f, -0.279161f);
BlocksRenderer::BlocksRenderer(
@@ -607,7 +605,7 @@ SortingMeshData BlocksRenderer::renderTranslucent(
return sortingMesh;
}
void BlocksRenderer::build(const Chunk* chunk, const Chunks* chunks) {;
void BlocksRenderer::build(const Chunk* chunk, const Chunks* chunks) {
this->chunk = chunk;
voxelsBuffer->setPosition(
chunk->x * CHUNK_W - voxelBufferPadding, 0,