From 25ac526936008daf45c8368568079d222ebf523c Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Thu, 4 Oct 2018 23:16:43 +0200 Subject: [PATCH] Computed facet normals for UE1 models were not normalized when they were supposed to. --- src/r_data/models/models_ue1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_data/models/models_ue1.cpp b/src/r_data/models/models_ue1.cpp index 838be2af70..bd4f54e3d8 100644 --- a/src/r_data/models/models_ue1.cpp +++ b/src/r_data/models/models_ue1.cpp @@ -129,7 +129,7 @@ void FUE1Model::LoadGeometry() FVector3 dir[2]; dir[0] = verts[Poly.V[1]+numVerts*j].Pos-verts[Poly.V[0]+numVerts*j].Pos; dir[1] = verts[Poly.V[2]+numVerts*j].Pos-verts[Poly.V[0]+numVerts*j].Pos; - Poly.Normals.Push(dir[0]^dir[1]); + Poly.Normals.Push((dir[0]^dir[1]).Unit()); } // push polys.Push(Poly);