Skip to content

Instantly share code, notes, and snippets.

@rje
Created May 31, 2016 20:47
Show Gist options
  • Select an option

  • Save rje/37198b9c38d24c5710faf9598695347f to your computer and use it in GitHub Desktop.

Select an option

Save rje/37198b9c38d24c5710faf9598695347f to your computer and use it in GitHub Desktop.
sampler2D _MainTex;
struct Input {
float2 uv_MainTex;
float2 uv2_MainTex; // lightmap uvs
};
half _Glossiness;
half _Metallic;
fixed4 _Color;
void surf (Input IN, inout SurfaceOutputStandard o) {
fixed4 c = tex2D (_MainTex, IN.uv2_MainTex) * _Color;
o.Albedo = c.rgb;
o.Metallic = _Metallic;
o.Smoothness = _Glossiness;
o.Alpha = c.a;
}
ENDCG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment