Получилось так:
Shader "XGUI/XGUIShader" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "Queue"="Transparent" "RenderType"="Transparent" }
LOD 200
Cull Off
Lighting Off
Blend SrcAlpha OneMinusSrcAlpha
ZWrite Off
ZTest NotEqual
BindChannels {
Bind "Vertex", vertex
Bind "texcoord", texcoord
Bind "Color", color
}
Pass {
SetTexture [_MainTex] { combine texture * primary }
}
}
}
Оптимизировать там нечего?
А "RenderType"="Transparent" что-то дает? А то что с ним, что без него.