Triangle shape gets transparent depending on camera distance

Avatar
  • updated
  • Fixed

Hi shapes team, I am using your shapes as 2d shapes in a unity scene. But now I have the following problem: In the video you can see a Rectangle shape next to a Triangle shape, when I move the camera further away the Triangle shape becomes transparent the further away I zoom. Both shapes use the same settings and the blend mode (Opaque).

Can you help me with this problem?

Image 520

Image 521
Youtube video
Reporting a bug? please specify Unity version:
2020.3.21f1
Reporting a bug? please specify Shapes version:
testet in 3.2.3 and 4.1.0
Reporting a bug? please specify Render Pipeline:
URP
Avatar
Tim Schedlbauer

Thank you, that worked.

Avatar
Freya Holmér creator
  • Fixed

this has been fixed in 4.1.1

if you want a fix in the meantime, go to Triangle Core.cginc and make this change

(green means added line, red means removed line. line numbers are on the left)