Created
July 27, 2017 23:51
-
-
Save keijiro/ac7101c65a4b0bb8247fe7235ebe43e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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