Skip to content

Instantly share code, notes, and snippets.

@sugi-cho
Last active December 19, 2015 12:29
Show Gist options
  • Save sugi-cho/5955525 to your computer and use it in GitHub Desktop.
Save sugi-cho/5955525 to your computer and use it in GitHub Desktop.
Shader "ImageEffect/Base" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
pass{
ZTest Always Cull Off ZWrite Off
Fog { Mode off }
ColorMask RGB
CGPROGRAM
#pragma fragmentoption ARB_precision_hint_fastest
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
sampler2D _MainTex;
half4 _MainTex_TexelSize;
fixed4 frag(v2f_img i) : COLOR{
return tex2D(_MainTex, i.uv);
}
ENDCG
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment