Computed facet normals for UE1 models were not normalized when they were supposed to.

This commit is contained in:
Marisa Kirisame 2018-10-04 23:16:43 +02:00
parent c60270bd9e
commit 25ac526936

View file

@ -129,7 +129,7 @@ void FUE1Model::LoadGeometry()
FVector3 dir[2]; FVector3 dir[2];
dir[0] = verts[Poly.V[1]+numVerts*j].Pos-verts[Poly.V[0]+numVerts*j].Pos; 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; 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 // push
polys.Push(Poly); polys.Push(Poly);