Guest User

Untitled

a guest
Mar 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         Tags{ }
  2.         Cull Front
  3.  
  4.         CGPROGRAM
  5.         #pragma target 3.0
  6.         #pragma surface outlineSurf Outline nofog keepalpha noshadow noambient novertexlights nolightmap nodynlightmap nodirlightmap nometa noforwardadd vertex:outlineVertexDataFunc
  7.        
  8.         struct Input
  9.         {
  10.             fixed filler;
  11.             float4 vertexColor : COLOR;
  12.         };
  13.  
  14.         uniform fixed _ASEOutlineWidth;
  15.  
  16.         void outlineVertexDataFunc( inout appdata_full v, out Input o )
  17.         {
  18.             UNITY_INITIALIZE_OUTPUT( Input, o );
  19.             v.vertex.xyz += ( v.normal * _ASEOutlineWidth );
  20.         }
  21.  
  22.         inline fixed4 LightingOutline( SurfaceOutput s, half3 lightDir, half atten ) { return fixed4 ( 0,0,0, s.Alpha); }
  23.  
  24.         void outlineSurf( Input i, inout SurfaceOutput o)
  25.         {
  26.             o.Emission = i.vertexColor;
  27.             o.Alpha = 1;
  28.         }
  29.         ENDCG
Add Comment
Please, Sign In to add comment