add drop test

This commit is contained in:
MihailRis
2024-06-24 15:39:40 +03:00
parent 69ddcb7595
commit 4b20487c58
6 changed files with 21 additions and 10 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ ModelBatch::~ModelBatch() {
void ModelBatch::draw(const model::Mesh& mesh, const glm::mat4& matrix, const glm::mat3& rotation) {
glm::vec3 gpos = matrix * glm::vec4(glm::vec3(), 1.0f);
light_t light = chunks->getLight(gpos.x, gpos.y, gpos.z);
light_t light = chunks->getLight(floor(gpos.x), floor(gpos.y), floor(gpos.z));
glm::vec4 lights (
Lightmap::extract(light, 0) / 15.0f,
Lightmap::extract(light, 1) / 15.0f,