源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 line
614 B

  1. // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
  2. Shader "MyShader/Legacy/Diffuse" {
  3. Properties {
  4. _Color ("Main Color", Color) = (1,1,1,1)
  5. _MainTex ("Base (RGB)", 2D) = "white" {}
  6. }
  7. SubShader {
  8. Tags { "RenderType"="Opaque" }
  9. Cull Off
  10. CGPROGRAM
  11. #pragma surface surf Lambert
  12. sampler2D _MainTex;
  13. fixed4 _Color;
  14. struct Input {
  15. float2 uv_MainTex;
  16. };
  17. void surf (Input IN, inout SurfaceOutput o) {
  18. fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
  19. o.Albedo = c.rgb;
  20. o.Alpha = c.a;
  21. }
  22. ENDCG
  23. }
  24. Fallback "Legacy Shaders/VertexLit"
  25. }