alpha-cancel shader usage

Hi, I am trying to create a GUI interface which needed to use alpha-cancel shader as done in Bootcamp demo for making Radar. I can’t get it to work in my project as the alpha-cancel shader seems to be not working in my project. But it seems to work on bootcamp demo.

I even export the package from the bootcamp demo and reimported to my project and it doesn’t work either. Any help or advice would be really appreciate.

got an answer to my self… I just have to fiddle around with the alpha value of the Main Color inside Alpha-Cancel shader… :slight_smile:

Shader “GUI/Textured Font”
Properties {
_MainTex (“Font Texture”, 2D) = “white” {}
_Color (“Text Color”, Color) = (1,1,1,1)

SubShader {     
   	Lighting Off		
	Cull Back
	ZWrite Off
	ZTest LEqual
	ColorMask RGB
	Alphatest Off
   Fog { Mode Off }
   Tags {"Queue" = "Transparent" }
   Pass {
      Blend SrcAlpha OneMinusSrcAlpha
      SetTexture [_MainTex] {
         constantColor [_Color]
         Combine texture * constant, texture * constant


Using the above shader and it works perfect for now … :slight_smile: