Advertisement
Rakshalpha

Flat.shader

Dec 26th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Shader "Custom/2D Flat" {
  2. Properties {
  3. _Color ("Color", Color) = (1,1,1,1)
  4. }
  5. SubShader {
  6. Tags { "RenderType"="Opaque" }
  7. LOD 200
  8.  
  9. CGPROGRAM
  10. #pragma surface surf Lambert vertex:vert
  11.  
  12. fixed4 _Color;
  13.  
  14. struct Input {
  15. float dummy;
  16. };
  17.  
  18. void vert (inout appdata_full v) {
  19. v.normal = float3(0, 0, -1);
  20. }
  21.  
  22. void surf (Input IN, inout SurfaceOutput o) {
  23. o.Albedo = _Color.rgb;
  24. }
  25. ENDCG
  26. }
  27. FallBack "Diffuse"
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement