Dashed Arc rendering an additional dash

Avatar
  • updated
  • Fixed

i'm having trouble with a dashed arc.
i'm setting it to Fixed Count, End to End and Count = 5, but it's generating 6 dashes.
played around with the spacing and it seems like it behaves normally with 5 dashes when the spacing is below 0.5 (e.g. 0.499), but the second it gets to 0.5, or a value rounded to 0.5, it creates 6 dashes

Image 648

Image 649

Reporting a bug? please specify Unity version:
2022.1.0b2
Reporting a bug? please specify Shapes version:
4.2.1
Reporting a bug? please specify Render Pipeline:
URP
Avatar
rasmus pedersen

Fix:
Open *\Assets\Shapes\Shaders\DashUtils.cginc
change from round to floor on line 105

Avatar
Freya Holmér creator
  • Fixed

thank you! fixed in 4.3.0