GPU Lightning Weapons

This commit is contained in:
Reinier Vens 2021-02-05 03:21:15 +00:00
commit 8d10e33db0
26 changed files with 1163 additions and 876 deletions

View file

@ -373,9 +373,9 @@ public class SectorRenderer : MonoBehaviour
hitShape[v] = true;
}
for (int i = 0; i < hit.Spread - 1; i++)
for (int i = 0; i < Mathf.RoundToInt(hit.Spread); i++)
{
hitShape.Expand();
hitShape = hitShape.Expand();
}
if (hit.Penetration > .5f)