Shader "Custom/NewShader" {
Properties
{
_Color("Color",Color)=(1,1,1,1)
_MainTex("Maintex",2D)="white"{}
_ShadowColor("ShadowColor",Color)=(0,0,1,1)
}
SubShader
{
Tags {"Queue"="Geometry+1"}
Pass
{
ZWrite Off
Blend One zero
ZTest Greater
Color [_ShadowColor]
}
Pass
{
Tags {"LightMode" = "Vertex"}
ZWrite On
Lighting On
Material
{
Diffuse [_Color]
Ambient [_Color]
}
SetTexture [_MainTex]
{
ConstantColor [_Color]
Combine texture * primary DOUBLE, texture * constant
}
}
}
FallBack "Diffuse"
}