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 )
So basically if i change the alpha value of _Color that entire material should fade In/Out
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.
answered Jan 14 '10 at 01:35 PM