ZED_Hide.shader 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //======= Copyright (c) Stereolabs Corporation, All rights reserved. ===============
  2. //Invisble object to enable the shadows on CPU
  3. Shader "ZED/ZED Hide"
  4. {
  5. Properties
  6. {
  7. _MainTex ("Texture", 2D) = "white" {}
  8. }
  9. SubShader
  10. {
  11. Tags { "RenderType"="Opaque" }
  12. Pass
  13. {
  14. ZWrite Off
  15. ZTest Never
  16. CGPROGRAM
  17. #pragma vertex vert
  18. #pragma fragment frag
  19. #include "UnityCG.cginc"
  20. struct appdata
  21. {
  22. float4 vertex : POSITION;
  23. float2 uv : TEXCOORD0;
  24. };
  25. struct v2f
  26. {
  27. float4 vertex : POSITION;
  28. };
  29. sampler2D _MainTex;
  30. float4 _MainTex_ST;
  31. v2f vert (appdata v)
  32. {
  33. v2f o;
  34. o.vertex = -1;
  35. return o;
  36. }
  37. fixed4 frag (v2f i) : SV_Target
  38. {
  39. return 0;
  40. }
  41. ENDCG
  42. }
  43. }
  44. Fallback Off
  45. }