UnderlayTransparentOccluderImposter.shader 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /************************************************************************************
  2. Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
  3. Your use of this SDK or tool is subject to the Oculus SDK License Agreement, available at
  4. https://developer.oculus.com/licenses/oculussdk/
  5. Unless required by applicable law or agreed to in writing, the Utilities SDK distributed
  6. under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  7. ANY KIND, either express or implied. See the License for the specific language governing
  8. permissions and limitations under the License.
  9. ************************************************************************************/
  10. Shader "Hidden/UnderlayTransparentOccluderImposter" {
  11. Properties { }
  12. SubShader {
  13. Tags { "Queue"="Transparent+2000" "RenderType"="Opaque" }
  14. LOD 100
  15. Cull Off
  16. ColorMask 0
  17. Pass {
  18. CGPROGRAM
  19. #pragma vertex vert
  20. #pragma fragment frag
  21. #include "UnityCG.cginc"
  22. struct appdata {
  23. float4 vertex : POSITION;
  24. };
  25. struct v2f {
  26. float4 vertex : SV_POSITION;
  27. };
  28. v2f vert (appdata v)
  29. {
  30. v2f o;
  31. o.vertex = UnityObjectToClipPos(v.vertex);
  32. return o;
  33. }
  34. fixed4 frag (v2f i) : SV_Target {
  35. return 0;
  36. }
  37. ENDCG
  38. }
  39. }
  40. }