I’m trying to get the same “Tint” effect from Adobe Flash where I can choose a color and a % to apply on my material. I also want to keep the alpha.
I currently use the Transparent Vertex Colored Shader from SM2, and I’m a complete newbie on Shader.
If I put green for the Main Color, I get this instead of the 100% tint of Flash (above):
When I use the shader you posted, I lose the alpha channel (because it’s used on the lerp). I need to another alpha color to add on top of this that would simply multiply only the alpha channel on the result above.
Either I’m missing something, or you aren’t using the shader I posted. The image alpha channel is not used in the lerp, and even if it were, it wouldn’t be “lost”.
The “previous” after the comma means that the alpha channel from the previous operation is used. The lerp operation uses the alpha channel of the _Color property to determine its final colour contribution.