Skip to content

Instantly share code, notes, and snippets.

@smokelore
Created May 29, 2016 19:39
Show Gist options
  • Save smokelore/3a5aa9b5b47071ba482676ab4b26284e to your computer and use it in GitHub Desktop.
Save smokelore/3a5aa9b5b47071ba482676ab4b26284e to your computer and use it in GitHub Desktop.
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