// ---- Created with 3Dmigoto v1.2.67 on Fri Jan 05 17:06:02 2018
cbuffer cb2 : register(b2)
{
  float4 cb2[4];
}

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

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




// 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,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : TEXCOORD0,
  out float4 o2 : TEXCOORD1,
  out float o14 : FOG0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = cb2[1].xyw * v0.yyy;
  r0.xyz = cb2[0].xyw * v0.xxx + r0.xyz;
  r0.xyz = cb2[2].xyw * v0.zzz + r0.xyz;
  r0.xyw = cb2[3].xyw * v0.www + r0.xyz;
  r0.z = cb0[4].z;
  r1.xyzw = r0.xyzw;
  o2.zw = r0.zw;
  r0.xyz = float3(0.5,0.5,0.5) * r0.xyw;
  o1.xy = v2.xy * cb0[3].xy + cb0[3].zw;
  r0.w = cb1[5].x * r0.y;
  o2.xy = r0.xw + r0.zz;
  o0.xyzw = r1.xyzw;

float4 stereo = StereoParams.Load(0);
float4 iniParams = IniParams.Load(0);
if(o0.w == 1){
o0.x += stereo.x * iniParams.x;
}

  o14.x = r1.z;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.67 on Fri Jan 05 17:06:02 2018
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// NORMAL                   0   xyz         1     NONE   float       
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// FOG                      0   x          14     NONE   float   x   
//
vs_4_0
dcl_constantbuffer cb0[5], immediateIndexed
dcl_constantbuffer cb1[6], immediateIndexed
dcl_constantbuffer cb2[4], immediateIndexed
dcl_input v0.xyzw
dcl_input v2.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xyzw
dcl_temps 2
dcl_output o14.x
mul r0.xyz, v0.yyyy, cb2[1].xywx
mad r0.xyz, cb2[0].xywx, v0.xxxx, r0.xyzx
mad r0.xyz, cb2[2].xywx, v0.zzzz, r0.xyzx
mad r0.xyw, cb2[3].xyxw, v0.wwww, r0.xyxz
mov r0.z, cb0[4].z
mov r1.xyzw, r0.xyzw
mov o2.zw, r0.zzzw
mul r0.xyz, r0.xywx, l(0.500000, 0.500000, 0.500000, 0.000000)
mad o1.xy, v2.xyxx, cb0[3].xyxx, cb0[3].zwzz
mul r0.w, r0.y, cb1[5].x
add o2.xy, r0.zzzz, r0.xwxx
mov o0.xyzw, r1.xyzw
mov o14.x, r1.z
ret 
// Approximately 0 instruction slots used

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