You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
Shader "ConformalDecals/Text Blit"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex("_MainTex (RGB spec(A))", 2D) = "white" {}
|
|
|
|
}
|
|
SubShader
|
|
{
|
|
Tags { "Queue" = "Transparent" }
|
|
Cull Off
|
|
ZWrite Off
|
|
|
|
Pass
|
|
{
|
|
BlendOp Max
|
|
|
|
CGPROGRAM
|
|
#pragma vertex vert
|
|
#pragma fragment frag
|
|
|
|
sampler2D _MainTex;
|
|
|
|
#include "UnityCG.cginc"
|
|
#include "Lighting.cginc"
|
|
#include "AutoLight.cginc"
|
|
|
|
struct v2f {
|
|
float4 pos : SV_POSITION;
|
|
float2 uv : TEXCOORD0;
|
|
};
|
|
|
|
v2f vert(float4 vertex : POSITION, float2 uv : TEXCOORD0) {
|
|
v2f o;
|
|
o.pos = UnityObjectToClipPos(vertex);
|
|
o.uv = uv;
|
|
return o;
|
|
}
|
|
|
|
fixed4 frag (v2f i) : SV_Target {
|
|
fixed4 c = 0;
|
|
|
|
c.r = tex2D(_MainTex,(i.uv)).a;
|
|
|
|
return c;
|
|
}
|
|
|
|
ENDCG
|
|
}
|
|
}
|
|
} |