Hi,
I’ve got this shader, is a modified version of a vertex color shader found on wiki
Shader "Transparent/VertexLit Colored" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_CutOff ("Cutoff", Range (0,1)) = 0.3
}
SubShader {
Alphatest Greater 0
Tags { "Queue" = "Transparent" }
Blend SrcAlpha OneMinusSrcAlpha // Alpha blending
ColorMask RGB
Pass {
ColorMaterial AmbientAndDiffuse
Lighting Off
SetTexture [_MainTex] {
Combine texture * primary
}
SetTexture [_MainTex] {
ConstantColor [_Color]
Combine previous * constant
}
}
}
Fallback "Alpha/VertexLit", 1
}
I’m not really into shader programming so don’t know what it can cause the problem, anyway when two texture with this shader overlaps I get some blending issue, a screenshot is better than a thousand words (expecially with my english)… the object in that screenshot have all the same Y component
Hope that some of you gurus can help me to easily find a solution ![]()
Thank you


