Created
May 29, 2016 19:39
-
-
Save smokelore/3a5aa9b5b47071ba482676ab4b26284e 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 "CookbookShaders/Diffuse" { | |
Properties { | |
_Color ("Color", Color) = (1, 1, 1, 1) | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
LOD 200 | |
CGPROGRAM | |
#pragma surface surf Standard fullforwardshadows | |
#pragma target 3.0 | |
struct Input { | |
float2 uv_MainTex; | |
}; | |
fixed4 _Color; | |
void surf (Input IN, inout SurfaceOutputStandard o) { | |
o.Albedo = _Color.rgb; | |
} | |
ENDCG | |
} | |
FallBack "Diffuse" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment