Created
January 16, 2016 03:33
-
-
Save srndpty/522f01d63063e8573c51 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/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