mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Computed facet normals for UE1 models were not normalized when they were supposed to.
This commit is contained in:
parent
c60270bd9e
commit
25ac526936
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue