Hello. Here is my modified 2 texture blend shader. I trying to add third texture but it is not working.
Shader “3 Texture Blend” {
Properties {
_Blend ("Blend", Range (0, 2)) = 0
_MainTex1 ("Base1 (RGB)", 2D) = "white"
_MainTex2 ("Base2 (RGB)", 2D) = "black"
_MainTex3 ("Base3 (RGB)", 2D) = "red"
}
SubShader {
Pass {
SetTexture [_MainTex1]{}
SetTexture [_MainTex2] {
constantColor (0, 0, 0, [_Blend])
combine texture lerp (constant) previous }
SetTexture [_MainTex3] {
constantColor (0, 0, 0, [_Blend])
combine texture lerp (constant) previous }
}
}
}
Help me please. I think maybe problem is in [_Blend].