You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
636 B
30 lines
636 B
3 years ago
|
// http://wiki.unity3d.com/index.php?title=UnlitAlphaWithFade
|
||
|
Shader "Unlit/UnlitAlphaWithFade"
|
||
|
{
|
||
|
Properties
|
||
|
{
|
||
|
_Color ("Color Tint", Color) = (1,1,1,1)
|
||
|
_MainTex ("Base (RGB) Alpha (A)", 2D) = "white"
|
||
|
}
|
||
|
|
||
|
Category
|
||
|
{
|
||
|
Lighting Off
|
||
|
ZWrite On
|
||
|
Cull back
|
||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||
|
Tags {Queue=Transparent}
|
||
|
|
||
|
SubShader
|
||
|
{
|
||
|
Pass
|
||
|
{
|
||
|
SetTexture [_MainTex]
|
||
|
{
|
||
|
ConstantColor [_Color]
|
||
|
Combine Texture * constant
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|