From a58ce5b7d070051666a419e501f52f5a3aa85222 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 15 Jul 2025 07:37:00 +0300 Subject: [PATCH] fix block wraps normals --- src/graphics/render/MainBatch.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/render/MainBatch.hpp b/src/graphics/render/MainBatch.hpp index fae9f904..ec85b008 100644 --- a/src/graphics/render/MainBatch.hpp +++ b/src/graphics/render/MainBatch.hpp @@ -77,9 +77,9 @@ public: buffer[index].color[2] = static_cast(light.b * 255); buffer[index].color[3] = static_cast(light.a * 255); - buffer[index].normal[0] = static_cast(normal.x * 128 + 127); - buffer[index].normal[1] = static_cast(normal.y * 128 + 127); - buffer[index].normal[2] = static_cast(normal.z * 128 + 127); + buffer[index].normal[0] = static_cast(normal.x * 127 + 128); + buffer[index].normal[1] = static_cast(normal.y * 127 + 128); + buffer[index].normal[2] = static_cast(normal.z * 127 + 128); buffer[index].normal[3] = static_cast(emission * 255); index++; }