I need the _MainTextue to have a alpha setting.
Shader "ALTO/Additive Overlay Alpha" {
Properties{
_MainTex("Texture 1", 2D) = "white" {}
_SecondaryTex("Texture 2", 2D) = "white" {}
_SecondaryTexScale("Texture 2 Scale", Color) = (0,0,0,0)
}
Category{
Tags{ "Queue" = "Overlay" }
Blend SrcAlpha One
Cull Back Lighting Off ZWrite Off Fog{ Mode Off }
ZTest Always
BindChannels{
Bind "Color", color
Bind "Vertex", vertex
Bind "TexCoord", texcoord
}
SubShader{
Tags{ "LightMode" = "Vertex" }
Pass{
SetTexture[_SecondaryTex]{
constantColor[_SecondaryTexScale]
combine texture * constant
}
SetTexture[_MainTex]{
combine texture + previous
}
SetTexture[_MainTex]{
combine previous * primary
}
}
}
}
}