Skip to content

Instantly share code, notes, and snippets.

@keijiro
Created July 27, 2017 23:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keijiro/ac7101c65a4b0bb8247fe7235ebe43e7 to your computer and use it in GitHub Desktop.
Save keijiro/ac7101c65a4b0bb8247fe7235ebe43e7 to your computer and use it in GitHub Desktop.
Shader "Custom/Template"
{
Properties
{
_MainTex ("Albedo (RGB)", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 80
CGPROGRAM
#pragma surface surf None nolightmap noforwardadd nolppv
#pragma target 2.0
sampler2D _MainTex;
struct Input {
float2 uv_MainTex;
};
half4 LightingNone(SurfaceOutput s, float3 normal, float3 lightDir)
{
return 0;
}
void surf(Input IN, inout SurfaceOutput o)
{
fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
o.Albedo = c.rgb;
o.Alpha = c.a;
}
ENDCG
}
FallBack "Diffuse"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment