Hi I have a render texture assigned to a raw image in my UI. I'm applying a mask to this raw image but it's just not working. I'm sure that mask setup is correct. Can anyone tell me how to solve this issue? Thanks Amin
just google masked unity shader think this one should be suitable... http://wiki.unity3d.com/index.php?title=Texture_Mask
Thanks. I searched a lot and got this shader for masking: Shader "MaskedTexture" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _Mask ("Culling Mask", 2D) = "white" {} } SubShader { Tags {"Queue"="Transparent"} Lighting Off ZWrite Off Blend SrcAlpha OneMinusSrcAlpha Pass { SetTexture [_Mask] {combine texture} SetTexture [_MainTex] {combine texture, previous} } } } I'm using a simple mask with a circle in the center to filer everything around the circle. It's strange but as you can see, in the result it seems that final material has a little transparency in the central circle. Anyone know how to solve that?