Opacity as gradient in Material

Hi i am having material like this and i am trying to make marked ones as invisible or as to apply opacity how can i make it

like the left and right side are having gradient kind of and i am trying for opacity there

hey there !
your 1-x is useless here, you need to premult your diffuse with the alpha. the alpha channel is float 1, means that white is opaque and black is full transparent :

This may not be that relevant here but judging by the pic, you’re reinventing this:

313611-screenshot-2020-09-15-103013.jpg

Maybe you’ll find it useful.

exactly. Thank you