//???- bluring issue
// ---- Created with 3Dmigoto v1.2.52 on Sun Feb 12 02:02:58 2017
Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb2 : register(b2)
{
  float4 cb2[4];
}

cbuffer cb1 : register(b1)
{
  float4 cb1[6];
}

cbuffer cb0 : register(b0)
{
  float4 cb0[16];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main( 
  float4 v0 : POSITION0,
  float3 v1 : NORMAL0,
  float4 v2 : TEXCOORD0,
  float2 v3 : TEXCOORD1,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : TEXCOORD0,
  out float4 o2 : TEXCOORD1,
  out float2 o3 : TEXCOORD2)
{
  float4 r0,r1,r2;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = v0.xyz;
  r0.w = 1;
  r1.xyzw = t1.SampleLevel(s1_s, v3.xy, 0).xyzw;
  r0.xyzw = r0.xyzw * float4(9.99999994e-009,9.99999994e-009,9.99999994e-009,9.99999994e-009) + r1.xyzw;
  r1.xyzw = cb2[1].xyzw * r0.yyyy;
  r1.xyzw = cb2[0].xyzw * r0.xxxx + r1.xyzw;
  r1.xyzw = cb2[2].xyzw * r0.zzzz + r1.xyzw;
  r0.xyzw = cb2[3].xywz * r0.wwww + r1.xywz;
  o0.xyzw = r0.xywz;
float4 stereo = StereoParams.Load(0);
//r0.x += stereo.x*(r0.w - stereo.y);
  r1.xyzw = t0.SampleLevel(s0_s, v3.xy, 0).xyzw;
  r2.xyzw = cb0[7].xyzw * r1.yyyy;
  r2.xyzw = cb0[6].xyzw * r1.xxxx + r2.xyzw;
  r2.xyzw = cb0[8].xyzw * r1.zzzz + r2.xyzw;
  r1.xyzw = cb0[9].xyzw * r1.wwww + r2.xyzw;
  r1.xyz = float3(1,-1,1) * r1.xyz;
  r1.xyz = r1.xyz / r1.www;
  r2.xyz = float3(1,-1,1) * r0.xyw;
  r2.xyz = r2.xyz / r0.zzz;
  r1.xyz = r2.xyz + -r1.xyz;
  o1.xyz = cb0[11].yyy * r1.xyz;
  o1.w = 0;
  r1.x = cmp(0 < cb1[5].x);
  r0.y = r1.x ? -r0.y : r0.y;
  o2.zw = r0.wz;
  r1.xz = float2(0.5,0.5);
  r1.y = cb1[5].x;
  r0.xyz = r1.xyz * r0.xyz;
  r0.w = 0.5 * r0.y;
  o2.xy = r0.xw + r0.zz;
  o3.xy = v2.xy * cb0[15].xy + cb0[15].zw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.52 on Sun Feb 12 02:02:58 2017
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyz 
// NORMAL                   0   xyz         1     NONE   float       
// TEXCOORD                 0   xy          2     NONE   float   xy  
// TEXCOORD                 1   xy          3     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xy          3     NONE   float   xy  
//
vs_4_0
dcl_constantbuffer cb0[16], immediateIndexed
dcl_constantbuffer cb1[6], immediateIndexed
dcl_constantbuffer cb2[4], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input v0.xyz
dcl_input v2.xy
dcl_input v3.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xy
dcl_temps 3
mov r0.xyz, v0.xyzx
mov r0.w, l(1.000000)
sample_l r1.xyzw, v3.xyxx, t1.xyzw, s1, l(0.000000)
mad r0.xyzw, r0.xyzw, l(9.999999939E-009, 9.999999939E-009, 9.999999939E-009, 9.999999939E-009), r1.xyzw
mul r1.xyzw, r0.yyyy, cb2[1].xyzw
mad r1.xyzw, cb2[0].xyzw, r0.xxxx, r1.xyzw
mad r1.xyzw, cb2[2].xyzw, r0.zzzz, r1.xyzw
mad r0.xyzw, cb2[3].xywz, r0.wwww, r1.xywz
mov o0.xyzw, r0.xywz
sample_l r1.xyzw, v3.xyxx, t0.xyzw, s0, l(0.000000)
mul r2.xyzw, r1.yyyy, cb0[7].xyzw
mad r2.xyzw, cb0[6].xyzw, r1.xxxx, r2.xyzw
mad r2.xyzw, cb0[8].xyzw, r1.zzzz, r2.xyzw
mad r1.xyzw, cb0[9].xyzw, r1.wwww, r2.xyzw
mul r1.xyz, r1.xyzx, l(1.000000, -1.000000, 1.000000, 0.000000)
div r1.xyz, r1.xyzx, r1.wwww
mul r2.xyz, r0.xywx, l(1.000000, -1.000000, 1.000000, 0.000000)
div r2.xyz, r2.xyzx, r0.zzzz
add r1.xyz, -r1.xyzx, r2.xyzx
mul o1.xyz, r1.xyzx, cb0[11].yyyy
mov o1.w, l(0)
lt r1.x, l(0.000000), cb1[5].x
movc r0.y, r1.x, -r0.y, r0.y
mov o2.zw, r0.wwwz
mov r1.xz, l(0.500000,0,0.500000,0)
mov r1.y, cb1[5].x
mul r0.xyz, r0.xyzx, r1.xyzx
mul r0.w, r0.y, l(0.500000)
add o2.xy, r0.zzzz, r0.xwxx
mad o3.xy, v2.xyxx, cb0[15].xyxx, cb0[15].zwzz
ret 
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
