源战役客户端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

64 wiersze
840 B

1 miesiąc temu
  1. 
  2. Shader "SuYou/unlit_instanced" {
  3. Properties {
  4. _MainTex ("Base", 2D) = "white" {}
  5. }
  6. CGINCLUDE
  7. sampler2D _MainTex;
  8. ENDCG
  9. SubShader {
  10. Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
  11. Blend SrcAlpha OneMinusSrcAlpha
  12. ZWrite Off
  13. Pass {
  14. CGPROGRAM
  15. #pragma vertex vert
  16. #pragma fragment frag
  17. #pragma multi_compile_fog
  18. #include "UnityCG.cginc"
  19. struct appdata_t {
  20. float4 vertex : POSITION;
  21. float2 texcoord : TEXCOORD0;
  22. };
  23. struct v2f
  24. {
  25. half4 pos : SV_POSITION;
  26. half2 uv : TEXCOORD0;
  27. };
  28. v2f vert (appdata_t v)
  29. {
  30. v2f o;
  31. o.pos = UnityObjectToClipPos (v.vertex);
  32. o.uv = v.texcoord;
  33. return o;
  34. }
  35. fixed4 frag (v2f i) : COLOR0
  36. {
  37. fixed4 tex = tex2D (_MainTex, i.uv);
  38. return tex;
  39. }
  40. ENDCG
  41. }
  42. }
  43. FallBack Off
  44. }