Fix blit shader

This commit is contained in:
Andrew Cassidy 2020-09-24 23:31:42 -07:00
parent f3aea02da7
commit 7495a6f509
4 changed files with 5 additions and 4 deletions

View File

@ -53,16 +53,17 @@ Shader "ConformalDecals/Text Blit"
v2f o;
o.pos = UnityObjectToClipPos(vertex);
o.uv = float4(uv0.x, uv0.y, bias, 0);
o.uv = float4(uv0.x, uv0.y, bias, weight);
return o;
}
fixed4 frag (v2f i) : SV_Target {
float2 uv = i.uv.xy;
float bias = i.uv.z;
float weight = i.uv.w;
fixed4 c = 0;
c.r = saturate(tex2D(_MainTex,(uv)).a - bias);
c.r = saturate(tex2D(_MainTex,(uv)).a + weight);
return c;
}

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4812aa47676df9378cf10c393f50aa7717018bff8605c592cc3b0fba4b241eaf
size 364943
oid sha256:8580f3c17793051fdc08447401fb7920665ad681ff352588508044b662a3240b
size 364900