making the built in shader Reflective/Diffuse to Fade In Out

Am a newbie to the shader world. Am just trying to add a slider to the built in Reflective/Diffuse shader which would control the alpha of the material.

Below is the shader I wrote, I just added Transparent/Diffuse which would use the alpha value from Main Color (_Color )

Shader "MyShaders/Test" {

Properties {
   _Color ("Main Color", Color) = (1,1,1,1)
   _ReflectColor ("Reflection Color", Color) = (1,1,1,0.5)
   _MainTex ("Base (RGB) RefStrength (A)", 2D) = "white" {}
   _Cube ("Reflection Cubemap", Cube) = "_Skybox" { TexGen CubeReflect }

SubShader {
   //LOD 200
   //Tags { "RenderType"="Opaque" }
   UsePass "Reflective/VertexLit/BASE"
   UsePass "Diffuse/PPL"
   UsePass "Transparent/Diffuse/BASE"
}enter code here
FallBack "Diffuse"


So basically if i change the alpha value of _Color that entire material should fade In/Out

any ideas???

A "pass" in ShaderLab-speak means a complete rendering of the object (several passes means the object is rendered several times). Later passes are rendered over earlier ones, so you can't modify the transparency of an earlier pass with a later one. Transparency in the later pass just shows through to the result of the earlier one.

You would need to modify the reflective pass to include transparency or else find an existing shader that does this.