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++; }