Browse Source

Portrait images are getting clipped #88

Fixed by copying the vertex shader code from the standard Unity sprite
shader.
master
chrisgregan 10 years ago
parent
commit
3470d85246
  1. 14
      Assets/Fungus/Portrait/Resources/Crossfade.shader

14
Assets/Fungus/Portrait/Resources/Crossfade.shader

@ -62,11 +62,15 @@
v2f vert(appdata_t IN)
{
v2f OUT;
OUT.vertex = mul(UNITY_MATRIX_MVP, IN.vertex);
OUT.texcoord = TRANSFORM_TEX(IN.texcoord, _MainTex);
OUT.color = IN.color * _Color;
return OUT;
v2f OUT;
OUT.vertex = mul(UNITY_MATRIX_MVP, IN.vertex);
OUT.texcoord = IN.texcoord;
OUT.color = IN.color * _Color;
#ifdef PIXELSNAP_ON
OUT.vertex = UnityPixelSnap (OUT.vertex);
#endif
return OUT;
}
fixed4 frag (v2f i) : COLOR

Loading…
Cancel
Save