123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //======= Copyright (c) Stereolabs Corporation, All rights reserved. ===============
- //Invisble object to enable the shadows on CPU
- Shader "ZED/ZED Hide"
- {
- Properties
- {
- _MainTex ("Texture", 2D) = "white" {}
- }
- SubShader
- {
- Tags { "RenderType"="Opaque" }
- Pass
- {
- ZWrite Off
- ZTest Never
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- };
- struct v2f
- {
- float4 vertex : POSITION;
- };
- sampler2D _MainTex;
- float4 _MainTex_ST;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = -1;
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- return 0;
- }
- ENDCG
- }
- }
- Fallback Off
- }
|