fixed4 frag (v2f i, UNITY_VPOS_TYPE screenPos : VPOS) : SV_Target
{
float3 cameraViewDir = -UNITY_MATRIX_V._m20_m21_m22;
float3 cameraViewDirXZ = normalize(float3(cameraViewDir.x, 0, cameraViewDir.z));
float3 cameraViewDirXY = normalize(float3(cameraViewDir.xy, 0));
float moveH = atan2(cameraViewDirXZ.x, cameraViewDirXZ.z) / UNITY_PI * 2;
float moveV = cameraViewDir.y;
float4 screenPosNorm = float4(screenPos.xy / _ScreenParams.xy,0,0);
// sample the texture
fixed4 col = tex2D(_MainTex, float2(screenPosNorm.x + moveH, screenPosNorm.y + moveV ));
clip( col.r - 0.5);
//fixed4 col = float4(screenPosNorm.xy, 0, 0);
return col;
}