Masking Texture in Round Shape

Hii all…

I want to mask facebook friend profile picture. , so that it will be in round shape.

but i don’t have any idea about how to do mask ?

I searched for that but could not get any idea.

Can anyone explain me the procedure of how to do masking so that profile picture will be in round shape…

Code to draw profile picture is :

Texture picture;

GUI.DrawTexture(new Rect(grp.width*0.05f,grp.height*0.036f + x * (grp.height*0.5f * 0.20f),Screen.width/2 * 0.3f,Screen.height/2 * 0.18f), picture);

Thanks…

Hi,

Try this shader.
http://wiki.unity3d.com/index.php/Procedural_Circle_Mask

Thanks
Aman