SimpleClear.shader 657 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
  2. Shader "Hidden/SimpleClear" {
  3. Properties {
  4. _MainTex ("Base (RGB)", 2D) = "white" {}
  5. }
  6. SubShader {
  7. Pass {
  8. ZTest Always Cull Off ZWrite Off
  9. Fog { Mode off }
  10. CGPROGRAM
  11. #pragma vertex vert
  12. #pragma fragment frag
  13. #pragma fragmentoption ARB_precision_hint_fastest
  14. #include "UnityCG.cginc"
  15. uniform sampler2D _MainTex;
  16. uniform float4 _MainTex_TexelSize;
  17. struct v2f {
  18. float4 pos : POSITION;
  19. };
  20. v2f vert( appdata_img v )
  21. {
  22. v2f o;
  23. o.pos = UnityObjectToClipPos(v.vertex);
  24. return o;
  25. }
  26. half4 frag (v2f i) : COLOR
  27. {
  28. return half4(0,0,0,0);
  29. }
  30. ENDCG
  31. }
  32. }
  33. Fallback off
  34. }