Shader "Custom/UnlitTransparent"
{
/*Properties{
_Color("Color & Transparency", Color) = (0, 0, 0, 0.5)
_Alpha("Alpha", Range(0.0, 1.0)) = 1.0
}
SubShader{
Lighting Off
ZWrite Off
Cull Back
Blend SrcAlpha OneMinusSrcAlpha
Tags{ "Queue" = "Transparent" }
Color[_Color]
Pass{
}
}*/
Properties
{
_MainTex("Texture", 2D) = "white"{}
_Color("Color & Transparency", Color) = (0, 0, 0, 0.5)
_Alpha("Alpha", Range(0,1)) = 1
}
SubShader
{
Tags{ Queue = Transparent }
ZWrite Off
Lighting off
Cull Back
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
SetTexture[_MainTex]
{
ConstantColor(1, 1, 1,[_Alpha])
Combine texture * constant
//Combine texture * constant DOUBLE
}
}
}
FallBack "Unlit/Transparent"
}
댓글 없음:
댓글 쓰기