(20b8797d8) WIP los effect improvements to prevent weird-looking shadows at spots where two wall pieces meet

This commit is contained in:
Joonas Rikkonen
2019-04-01 14:25:04 +03:00
parent 54ad37081d
commit 0d0bf022b0
2 changed files with 61 additions and 49 deletions
@@ -75,7 +75,10 @@ namespace Barotrauma
};
var h = new ConvexHull(verts, Color.Black, this);
h.Rotate(position, rotation);
if (Math.Abs(rotation) > 0.001f)
{
h.Rotate(position, rotation);
}
convexHulls.Add(h);
}