Hi!
Currently I’m using the following shader that blends 2 textures.
Shader "2AlphaBlendedTextures" {
Properties {
_MainTex ("Alpha Blended (RGBA)", 2D) = "white" {}
_BlendTex ("Alpha Blended (RGBA)", 2D) = "white" {}
}
SubShader {
LOD 200
Alphatest Greater 0.5
ZWrite On
ColorMask RGB
Pass {
// Apply base texture
SetTexture [_MainTex] {
combine texture
}
// Blend in the alpha texture using the lerp operator
SetTexture [_BlendTex] {
combine texture lerp (texture) previous
}
}
}
}
What I need is something like that shader but that may blend up to 3 textures. Is it possible? does anyone know where I can find it?
Thank you very much.