|
|
|
|
|
|
CGPROGRAM |
|
|
|
#pragma vertex vert |
|
|
|
#pragma fragment frag |
|
|
|
#pragma multi_compile _ UNITY_SINGLE_PASS_STEREO STEREO_INSTANCING_ON STEREO_MULTIVIEW_ON |
|
|
|
#pragma multi_compile_fog |
|
|
|
#pragma shader_feature _ _ALPHATEST_ON _ALPHABLEND_ON |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
float4 vertex : POSITION; |
|
|
|
float2 uv : TEXCOORD0; |
|
|
|
UNITY_VERTEX_INPUT_INSTANCE_ID |
|
|
|
}; |
|
|
|
|
|
|
|
struct v2f |
|
|
|
|
|
|
float4 vertex : SV_POSITION; |
|
|
|
UNITY_VERTEX_OUTPUT_STEREO |
|
|
|
}; |
|
|
|
|
|
|
|
sampler2D _MainTex; |
|
|
|
|
|
|
v2f vert(appdata v) |
|
|
|
{ |
|
|
|
v2f o; |
|
|
|
|
|
|
|
UNITY_SETUP_INSTANCE_ID(v); |
|
|
|
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); |
|
|
|
|
|
|
|
o.vertex = UnityObjectToClipPos(v.vertex); |
|
|
|
o.uv = TRANSFORM_TEX(v.uv, _MainTex); |
|
|
|
UNITY_TRANSFER_FOG(o,o.vertex); |
|
|
|