Guest User

Untitled

a guest
Jan 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1.  
  2.  
  3.   Shader "Vertex Lit Sausage" {
  4.     Properties {
  5.       _MainTex ("Texture", 2D) = "white" {}
  6.       _Emission ("Emission", Color) =  (0,0,0,1)
  7.     }
  8.     SubShader {
  9.       Tags { "RenderType" = "Opaque" }
  10.         Lighting On
  11.        
  12.       CGPROGRAM
  13.       #pragma surface surf Lambert
  14.      
  15.       fixed4 _Color;
  16.       fixed4 _Emissive;
  17.  
  18.       struct Input {
  19.         float2 uv_MainTex;
  20.       };
  21.       sampler2D _MainTex;
  22.       void surf (Input IN, inout SurfaceOutput o) {      
  23.           o.Albedo = tex2D (_MainTex, IN.uv_MainTex).rgb*_Color;
  24.           o.Emission = tex2D (_MainTex, IN.uv_MainTex).rgb*_Emission*2;
  25.       }
  26.       ENDCG
  27.     }
  28.     Fallback "Diffuse"
  29.   }
Add Comment
Please, Sign In to add comment