Shader "Overdraw"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Fog{Mode off}
ZWrite off
ZTest always
blend one one
pass{
SetTexture[_MainTex]{
ConstantColor(0.1,0.04,0.02,0)
Combine constant,texture
}
}
}
}
Unity编辑器着色器
ShaderLab settexture