16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00

Do not discard glm::normalize return value

This commit is contained in:
docentYT
2026-05-12 00:03:40 +02:00
parent 4e0b4e6ff6
commit 3e360607d8

View File

@@ -604,7 +604,7 @@ std::pair<int, int> TSubModel::Load(cParser &parser, bool dynamic)
parser >> vertex->normal.x >> vertex->normal.y >> vertex->normal.z;
if (glm::length2(vertex->normal) > 0.0f)
{
glm::normalize(vertex->normal);
vertex->normal = glm::normalize(vertex->normal);
}
else
{