I have this shader I found in the Wiki. It works but
I need to have the ability to fade it out with iTween.FadeTo(gameObject,.2,0);
obviously this doesn’t work because _Color property isn’t being applied in the “Pass” section. Can someone please help me out
Shader "Blend 2 Textures" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_Blend ("Blend", Range (0, 1) ) = 0
_MainTex ("Texture 1", 2D) = ""
_Texture2 ("Texture 2", 2D) = ""
}
SubShader {
Pass {
SetTexture[_MainTex]
SetTexture[_Texture2] {
ConstantColor (1,1,1, [_Blend])
Combine texture Lerp(constant) previous
}
}
}
}