How can I add alpha channel to this shader and how can I make the object to be transparent ?

Nm sorry i did a mistake and needed to delete

All that comes to mind is:

  • setting main.a = 0; / mask.a = 0;
  • using transparent cutout by for example clip (main.a - someValue); , where when main.a - someValue is lower than 0, pixel won’t be rendered. It’s useful when your mask is making the object fade.
  • making fully transparent texture