- Home /
dynamic gradient alpha mask
Hello everyone, is there a way to make a dynamic gradient alpha mask applied to a texture ? where the white part will be shown, the black part will be invisible, and the part in between will be transparent depending on its value, the goal is to have a result like this :
note : i have no experience with shader programming so please be specific
thank you very much
Answer by gvinobigboss · Oct 22, 2013 at 02:53 AM
use GIMP to make a picture to alpha texture then import the asset to the unity .apply to the gameobject.now you can find instance of the texture in the materials.in that select the texture and change the shader value to unlit/transparency-cutout thats it !! its done :)
Answer by DominoOne · Feb 17, 2015 at 12:02 PM
Hello Aladine,
I know that the question is pretty old, but maybe this will help someone, who finds themselves looking for a solution. Since a lot of people are having this problem, and won't achieve much flexibility even if they make their own shader, we've made a plugin that provides a very easy-to-use way to handle Alpha Masks. You can check it out here:
Hope it helps!