Skip to content

Instantly share code, notes, and snippets.

@hecomi
Forked from srndpty/TestShading.shder
Created January 16, 2016 03:38
Show Gist options
  • Save hecomi/7d3f8d5c259a84d132ca to your computer and use it in GitHub Desktop.
Save hecomi/7d3f8d5c259a84d132ca 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