I have a circular minimap which is created by a custom mask and some gui textures. The script goes as follows:
Shader "Custom/Mask"
{
Properties
{
_MainTex ("Main Texture", 2D) = "white" {}
_Mask ("Mask Texture", 2D) = "white" {}
}
SubShader
{
Tags { "Queue"="Transparent" }
Lighting On
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
SetTexture [_Mask] {combine texture}
SetTexture [_MainTex] {combine texture, previous}
}
}
}
However I would like to overlay a .png image onto this which is the border of my minimap. The image has transparency however when I import it and it overlays perfectly, the background is white and you cannot see the minimap behind it. How can I make the transparency on this .png file work?