Created
May 31, 2016 20:47
-
-
Save rje/37198b9c38d24c5710faf9598695347f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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