(bb8a4525e) Progress on LOS effect improvements. Hiding the unnecessary shadows at spots where the ends of two walls meet works now, still got to do something about corner areas where a vertical wall meets a horizontal one.

This commit is contained in:
Joonas Rikkonen
2019-04-01 22:53:27 +03:00
parent 98e0504e1f
commit 43578f3bb2
5 changed files with 234 additions and 118 deletions
@@ -583,7 +583,7 @@ namespace Barotrauma.Lights
convexHull.CalculateShadowVertices(relativeLightPos, true);
//convert triangle strips to a triangle list
for (int i = 0; i < convexHull.shadowVertexCount * 2 - 2; i++)
for (int i = 0; i < convexHull.ShadowVertexCount * 2 - 2; i++)
{
if (i % 2 == 0)
{