InvisibleShader.shader 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License. See LICENSE in the project root for license information.
  3. Shader "ShadowSDK/InvisibleShader" {
  4. Subshader
  5. {
  6. Pass
  7. {
  8. GLSLPROGRAM
  9. #ifdef VERTEX
  10. void main() {}
  11. #endif
  12. #ifdef FRAGMENT
  13. void main() {}
  14. #endif
  15. ENDGLSL
  16. }
  17. }
  18. Subshader
  19. {
  20. Pass
  21. {
  22. CGPROGRAM
  23. #pragma vertex vert
  24. #pragma fragment frag
  25. #include "UnityCG.cginc"
  26. struct v2f
  27. {
  28. fixed4 position : SV_POSITION;
  29. UNITY_VERTEX_OUTPUT_STEREO
  30. };
  31. v2f vert(appdata_base v)
  32. {
  33. v2f o;
  34. UNITY_SETUP_INSTANCE_ID(v);
  35. UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
  36. o.position = fixed4(0,0,0,0);
  37. return o;
  38. }
  39. fixed4 frag() : COLOR
  40. {
  41. return fixed4(0,0,0,0);
  42. }
  43. ENDCG
  44. }
  45. }
  46. }