SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
861 B

4 years ago
  1. Shader "AR/Occlusion"
  2. {
  3. SubShader
  4. {
  5. Tags { "RenderType"="Opaque" }
  6. Tags { "Queue" = "Geometry-1" }
  7. ZWrite On
  8. ZTest LEqual
  9. ColorMask 0
  10. Pass
  11. {
  12. CGPROGRAM
  13. #pragma vertex vert
  14. #pragma fragment frag
  15. #include "UnityCG.cginc"
  16. struct appdata
  17. {
  18. float4 vertex : POSITION;
  19. };
  20. struct v2f
  21. {
  22. float4 vertex : SV_POSITION;
  23. };
  24. v2f vert (appdata v)
  25. {
  26. v2f o;
  27. o.vertex = UnityObjectToClipPos(v.vertex);
  28. return o;
  29. }
  30. fixed4 frag (v2f i) : SV_Target
  31. {
  32. return fixed4(0.0, 0.0, 0.0, 0.0);
  33. }
  34. ENDCG
  35. }
  36. }
  37. }