I want to make an transparency effect with the camera distance to the object, I use the "Dithering" example. If the alpha value is 1 the material is opaque but it render the shadows from behind



Using the Unity default LWRP simpleLit with transparency works fine.
What i'm doing wrong?