Hiya all.
I've modified the LayerShader from Unify so that it maps two textures (with alphas) to one mesh using two different UV maps.
Is there any way I could modify it so that instead of combining MainTex with PathTex, it overlays MainTex over PathTex? The source is below:
Shader "DoubleUV2" {
Properties {
_Color ("Color", Color) = (1,1,1)
_Blend ("Blend", Range (0,1)) = 0.5
_MainTex ("Main Texture", 2D) = ""
_PathTex ("Path Texture (RGB)", 2D) = ""
}
Category {
Material {
Ambient[_Color]
Diffuse[_Color]
}
SubShader {
Pass {
BindChannels
{
Bind "Vertex", vertex
Bind "texcoord1", texcoord0
Bind "texcoord", texcoord1
Bind "Color", color
Bind "Normal", normal
}
SetTexture[_PathTex]
SetTexture[_MainTex]
{
combine texture * previous, previous + texture
}
}
Pass {
Lighting On
Blend DstColor SrcColor
}
}
}
}
Regards, Joel.