Guest User

Untitled

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