源战役客户端
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

33 linhas
762 B

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