Skip to content

Instantly share code, notes, and snippets.

@srndpty
Created January 16, 2016 03:33
Show Gist options
  • Save srndpty/522f01d63063e8573c51 to your computer and use it in GitHub Desktop.
Save srndpty/522f01d63063e8573c51 to your computer and use it in GitHub Desktop.
Shader "Custom/TestShading" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
}
SubShader {
Tags { "RenderType" = "Opaque" }
CGPROGRAM
#pragma surface surf Lambert
struct Input {
float4 color : COLOR;
};
float4 _MainColor;
void surf (Input IN, inout SurfaceOutput o) {
o.Albedo = _MainColor.rgb;
}
ENDCG
}
FallBack "Diffuse"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment